[LC] Add solution to n-queens 2.