ZS Associates interview question

The case study was the most difficult part.