Ubisoft interview question

How to retain local pointer information outside of a function. XOR related question.