Question d’entretien chez Goldman Sachs

How will you optimize the N queens problem