Noname Interview Question

Implement Smart pointers in cpp