https://www.codechef.com/viewsolution/45780379
What is wrong with this solution? Pls help. Thank you.