upGrad interview question

Case example and my introduction