Question d’entretien chez Google

It was a leet code problem