Why my answer is giving WA. Please help!

problem link : CodeChef: Practical coding for everyone
my submission: CodeChef: Practical coding for everyone