DraftKings interview question

implement this function given the three classes provided