link of code
Test case no 2 and 4 failing
if the first digit is 9, it would not change, for example in case of 9888 answer should be 9111, but your answer is 111.
link of code
if the first digit is 9, it would not change, for example in case of 9888 answer should be 9111, but your answer is 111.