Question d’entretien chez IBM

Coding question in Python with test cases