Google interview question

Code the shared pointer implementation in C++