@Wasif_719 Let the contest end then I help solve the problem? I think that’s fair.
About the question you asked at the end, it means your program will have to first read the value of T, and solve T number of test cases. That usually means your code will look like this:
int T;
scanf("%d", &T)
while(T--) {
// The solution for the problem goes here.
}