Metaswitch Interview Question

Develop a programme to win as much as possible in blackjack. To answer this question please relate to probability. Set a risk limit on hit or stay.