The n-queens puzzle: place n queens on an n×n board such that no two queens attack each other. Return all distinct solutions.
n = 4
[[".Q..","...Q","Q...","..Q."],["..Q.","Q...","...Q",".Q.."]]
n = 1
[["Q"]]