https://www.codechef.com/viewsolution/40913782
What’s wrong with this code when the outputs are correct?