Topic: Stack Problem / Level: beginner

Problem: Write a program to push elements into a stack until a specified value is encountered.

Run the code to see the output here...