pls point mistakes
Redundant parantheses
hello @Keshav99
a)
put ur stack inside while loop.

b) use cin because in some test cases all strings r given in same line.
c)
check spelling of Not Duplicates (u missed s)
ur updated code
hello @Keshav99
a)
put ur stack inside while loop.

b) use cin because in some test cases all strings r given in same line.
c)
check spelling of Not Duplicates (u missed s)
ur updated code