Pregunta de entrevista de DraftKings

Discount assignment question, four subtasks