ZS Associates Interview Question

How would you solve the third module of the given case study?