Question d’entretien chez Google

Improve the complexity of the algorithm