Gojek interview question

BlackJack coding problem