i think my code is crrct as it is running fine for the given testcases, but at the time of submission its not getting accepted;
Prateek Sir and Coding
You are missing one condition in the case when type = 1.
If the stack is empty, you have to display “No Code”.