Question d’entretien chez Google

An algorithm problem to solve