Deck of Cards Programming Problem Solution