DraftKings Interview Question

implement this function given the three classes provided