Topic: Stack Problem / Level: beginner

Problem: Create a function to push elements into a stack and find the maximum element using only one loop.

Run the code to see the output here...