Intuit Interview Question

Question was about data structures, nothing too complicated