Explain N Queen Problem Leetcode 150