Help me in solving MAJIK problem

My issue

plz give me hint /approach.

My code

#include <bits/stdc++.h>
#define ll long long int
using namespace std;

int main() {
	// your code goes here
	
	return 0;
}

Problem Link: MAJIK Problem - CodeChef