DraftKings interview question

Data structure algorithm with a few parts/constraints