https://www.codechef.com/viewsolution/25356235
could someone please look into my code and tell me my mistake