Please explain this question , i am not able to understand

pls can anyone explain in brief “https://www.codechef.com/FFC22019/problems/FFC219D