DraftKings interview question

Coding exercise to validate a lineup.