N Queens Problem In Python Code