ZS Associates Interview Question

How would you break down this problem into smaller steps?