ZS Associates interview question

From the case study given