Help me in solving J3 problem

My issue

i didn’t understand the output of first test case

My code

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

int main() {
	// your code goes here

}

Problem Link: The N Queens Puzzle Revisited Practice Coding Problem