N Queens Python Solution Leetcode