Nokia interview question

Mainly Data structures and algorithms