DraftKings interview question

just coding exercise