Question d’entretien chez Uber

Regular algorithm and data structure question.