Pregunta de entrevista de DraftKings

Data structure algorithm with a few parts/constraints