Red Ventures Interview Question

How would you break up this hypothetical problem into components and would you store the data.