What's Wrong in my code

only one test case fails