Nokia interview question

pointers