Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and pop the first element that is smaller than the top element.

Run the code to see the output here...