Domanda di colloquio di Intuit

Question was about data structures, nothing too complicated