Nokia interview question

Basic data structures