Topic: Stack Problem / Level: beginner

Problem: Write a function to push elements into a stack and find the mode (most frequent element).

Run the code to see the output here...