Topic: Stack Problem / Level: beginner

Problem: Write a program to reverse the elements of a stack while preserving the order of even numbers.

Run the code to see the output here...