Help me in solving CLB062 problem

My issue

i can’t understand

My code

#include <stdio.h>

int main() {
	// your code goes here

}


Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC14/problems/CLB062