Topic: Stack Problem / Level: beginner

Problem: Write a program to check if a stack has duplicate elements.

Run the code to see the output here...