ZS Associates Interview Question

From the case study given