Question d’entretien chez DraftKings

Code a solution to given HackerRank problem