What's wrong in my code?

Submission link → Solution: 57285735 | CodeChef
Problem → Contest Page | CodeChef