Problem with my submission in COFDQ1

Solution: 40749831 | CodeChef
Can anyone please help me with what is wrong with my code?