Query Regarding Output

In this Chewbacca question, i did not understand what is to be done with the leading zeroes. If the starting digits become zeroes am i then not supposed to print them or while replacing the starting 9s I should not put a zero there instead of the 9 and print it as it is ?

If the number starts with 9, just don’t make it 0, after the first digit solve it greedily

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.