Nokia Interview Question

Implement a shared pointer in C++.