https://www.codechef.com/viewsolution/55257476
It is showing wrong answer. I need help with any corrections.