Topic: Stack Problem / Level: beginner

Problem: Implement a function to calculate the sum of all elements in a stack.

Run the code to see the output here...