Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and remove all elements that are greater than the average of the stack.

Run the code to see the output here...