[LC] Add solution to n-queens.