Prateek sir and coding

sir please take a look into my code and help me to find where i did mistake i’ve checked with all possible cases and outputs are correct but on submitting none of the test case gets correct…please help/…?

@nikhilmeena you are supposed to print “No Code” if the pile is empty on quuery 1. Modify your code accordingly. I hope I have solved your doubt, please mark it as resolved if you are satisfied.