Redundant parantheses

pls point mistakes

https://ide.codingblocks.com/s/284794

hello @Keshav99
a)
put ur stack inside while loop.
image
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