Globant interview question

How would I implement a shared pointer.