DraftKings interview question

Discount assignment question, four subtasks