ZS Associates interview question

How would you break down this problem into smaller steps?