N Queens Problem Solution In Python