Hudson River Trading interview question

Code an optimal strategy for a simplified version of blackjack (45 mins live coding)