Metaswitch Interview Question

How do you make a program that plays blackjack?