Topic: Stack Problem / Level: intermediate

Problem: Write a program to push numbers into a stack and find the maximum element in constant time.

Run the code to see the output here...