Gojek interview question

Given a coding problem