Topic: Stack Problem / Level: beginner

Problem: Create a function to push numbers into a stack and keep only the even-indexed elements.

Run the code to see the output here...