how to solve this question?
https://www.codechef.com/MAY221B/problems/ITGRZN
CodeChef Starters 131 Solution Discussion