RealVNC interview question

How do the smart pointers work?