Intuit interview question

Question was about data structures, nothing too complicated