Domanda di colloquio di IBM

An average difficulty python algorithm question