Question d’entretien chez Lyft

A coding question from leetcode from the medium or hard category