ZS Associates interview question

Case study was given for solutioning