Not getting output

in my code i am not getting any output. please tell me the flaw in my code and tell me how to correct it

@shivamgoel150 declare the stack OUTSIDE the for loop, as the same stack is being used for all the queries. Also, you are missing the case where

If the pile is empty, print "No Code" (without the quotes).