NQueen Problem coded