Topic: Stack Problem / Level: intermediate

Problem: Write a program to push elements into a stack and remove duplicates while maintaining the order of elements.

Run the code to see the output here...