Please help me solve this Question?

Please tell me what’s wrong ?

Problem Link :- https://www.codechef.com/submit/NOLOGIC?tab=statement

My Code :- https://www.codechef.com/viewsolution/73693090