N Queens problem. (Generalised backtrack method ).