Test case no 2 and 4 failing

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.