Topic: Stack Problem / Level: beginner

Problem: Create a function to push elements into a stack and pop them until the sum of the popped elements exceeds a given value.

Run the code to see the output here...