ZS Associates interview question

Based on Case study.