Why it's wrong

can anyone tell me why my code is wrong

Q - CodeChef: Practical coding for everyone
ans - CodeChef: Practical coding for everyone