Question d’entretien chez Google

mathematical question. it was implementation based