Google Interview Question

Code the shared pointer implementation in C++