URGENT HELP NEEDED ! Why answer is not correct?

https://www.codechef.com/viewsolution/31851162