ZS Associates interview question

Questions from the case study