Question d’entretien chez Uber

Coding question - average difficulty