


The first and the only line of input contains an integer 'N' representing the size of the chessboard and the number of queens.
Each line would be representing a single configuration.
Each configuration would contain 'N '* 'N' elements printed row-wise separated by spaces. The position where we can place the queen will have the value 1 rest will have the value 0.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= 'N' <= 10
Time Limit: 1sec
For a chessboard of size 4*4
The configurations are

Sorted Doubly Linked List to Balanced BST
Longest Substring with K-Repeating Characters
Expression Add Operators
Gray Code Transformation
Count of Subsequences with Given Sum