Question d’entretien chez Uber

Asked me to solve a leetcode problem