Maximum Gain Within Budget

Company: Uber

Difficulty: medium