Pergunta de entrevista da empresa Noom

write a data structure for this hypothetical functionality