Wrong ans idk why

i think my code is correct but still ans is wrong