Nokia interview question

C/C++ Memory management, Multi threading