Topic: Stack Problem / Level: beginner

Problem: Implement a function to push elements into a stack and pop elements in reverse order of their indices.

Run the code to see the output here...