ZS Associates interview question

Based on case study given to solve