N Queens Ii Leetcode Solution