Question d’entretien chez IBM

An average difficulty python algorithm question