Nokia interview question

Thread safety