Topic: Stack Problem / Level: intermediate

Problem: Write a program to find the maximum sum of elements in a stack after performing a sequence of push and pop operations.

Run the code to see the output here...