What is wrong in this code?

Hey @ashish_arora369
Try for 9342
I updated your code to handle this case and mentioned in comments: https://ide.codingblocks.com/s/330267

but question does’t said anything about in case of 9 in the starting

0342 is smaller than 9342 so it should be correct.

@ashish_arora369 It does re read the question

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.