Gojek Interview Question

Explaining about some example code they provide