Question d’entretien chez Uber

Programming question involving maximizing profit