[LeetCode] N queen problem