Domanda di colloquio di Garmin

there was a leetcode easy problem