Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack and find the sum of all elements at even indices.

Run the code to see the output here...