Question d’entretien chez Garmin

there was a leetcode easy problem