Challenge: Reverse Stack

Let’s reverse the elements of a stack.

Problem

Given a stack, reverse its elements.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.