N Queen Problem Code