Help me in solving SWISHGAME problem

My issue

i didnt understand the question should we tell the testcases when it is possible

My code

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

int main() {
	// your code goes here

}

Problem Link: Swish Game Practice Coding Problem