Pregunta de entrevista de ZS Associates

How would you break down this problem into smaller steps?