💡 Chewbacca and Number

What should be the output for
1234

9765 is the output of this

How is this minimum possible number as per the question it is greater than the input.

my mistake i thought it of bigger number

for 1234
ans is 1234 as it is minimum and no number cann be formed minimum y doing 9-number

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.