My code is passing all test cases except the last one. Please provide me a test case for which it fails.
try 1069999 as input
your answer gives 10008999
Yeah any number with 1 + zeroes + some number + 9s gives wrong answer I think.
Got it !! Thanks a lot !!!