Morgan Stanley Interview Question

implement shread_ptr