Question d’entretien chez Geotab

Can you give another solution for the coding question?