Question d’entretien chez Google

Asked to solve a complex algorithm