Nokia interview question

Basic Data Structures and Algorithms