Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and pop elements until their sum exceeds 400.

Run the code to see the output here...