Chewbacca and number

can you explain me what i had to do and pls dont send the complete code i want to frame it my self

hi @ u need to find the minimum possible no which can be formed, what you can do is that u can flip each digit in that no i.e 9-digit
eg 4545 -> u can flip first 4 to 9-4 = 5
but it will make the no bigger and it will become 5545
so we will not flip it and will flip 5’s here and it will be 9-5 = 4
so the no will become 4444

so sir what is the syntax to do that

hi @agarwaldaksh360_2bae042448e62c08

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.