Metaswitch interview question

Design algorithm that can play blackjack