leetcode: N-Queens