Pregunta de entrevista de JPMorganChase

Hackerrank question was coding up Blackjack