Pergunta de entrevista da empresa Red Ventures

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