Maximize the Capped Contribution Sum

Company: Visa

Difficulty: easy