Can someone please explain what is wrong with my solution ? https://www.codechef.com/viewsolution/33325909