Help me in solving CHODE problem

My issue

I AM UNABLE TO UNDERSTAND HOW THE PROBLEM STATEMENT WORKS IN ACTUAL TESTCASES IN CHEF AND CODES. CAN ANYONE HELP ME?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	

}

Problem Link: Chef and Codes Practice Coding Problem