Pergunta de entrevista da empresa JPMorganChase

Hackerrank question was coding up Blackjack