Globant Interview Question

How would I implement a shared pointer.