JPMorganChase Interview Question

Hackerrank question was coding up Blackjack