Question d’entretien chez Motorola Solutions

How would you test this function in python?