Question d’entretien chez BambooHR

Solve this problem using Python 3.