https://onlinegdb.com/rJM0aP9Gv

i m not even printing the leading zeros u once run my code for various inputs and tell the flaw plz

@asinghal1_be19 for the input
99879
the output should be 90120
but your output is 120

now i m getting 90120 for 99879 but still 1 test case is not working

@asinghal1_be19 please stick to only doubt to avoid creating confusion for yourself, you may mark one of these resolved. I have replied to the other doubt you raised on the same topic.

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.