Chewbacca and Number doubt

Please tell the mistake in my code as I am not able to pass 2
testcases…

o/p should not contain leading zeroes.
in your code if starting digit contains 9 so start becomes 0

I hope your doubt is cleared . if yes dont forget to mark it resolved :smiley:

https://ide.codingblocks.com/s/229916 Pls tell what changes should I make To pass testcase-1:

@G_rahil
your code for output 8555 was giving 8444 there was error is starting position check


i have corrected it here have a look

hey @G_rahil if doubt is cleared please mark it as resolved

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.