Topic: Stack Problem / Level: beginner

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

Run the code to see the output here...