Question d’entretien chez Lyft

Medium LeetCode question?. Not that hard