Place queens on an chessboard so no two queens attack each other.
Queens attack horizontally, vertically, and diagonally.
For , one solution:
. Q . .
. . . Q
Q . . .
. . Q .
Return all distinct solutions. Each solution is a board configuration.
Constraints: .