DraftKings interview question

algorithm and data structure question