BlackRock interview question

Algorithm for dealing cards in a card game