Can you explain the problem statement please
Unable to understand the problem
Hi anjali,the problem only aim is to check whether you know stack basic operations or not.
So let me explain in simple manner,
there are two queries:
1 focues on removing the element from the top of stack and printing on console.
2 pushes element onto stack.
I hope this marks your doubt resolved.