Why 1 test case fail

dry run your code for testcase input:
99
desired output: 90
output from your code: 99