Pergunta de entrevista da empresa Intuit

Question was about data structures, nothing too complicated