Nokia interview question

Memory management