Getting wrong answer


Code is running successfully and for given input output is correct but still failing in all test cases. Pls tell me where I am going wrong.

hey @Hk199977 you need to print No Code In case the pile is empty, the student goes away empty-handed. But you are not printing anything in that case.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.