Jump Trading Interview Question

Implement a simplified shared_ptr class in c++.