ZS Associates Interview Question

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