Bloomberg interview question

How would you implement C++'s auto pointer?