Bloomberg Interview Question

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