Delinea Interview Question

Implement smart pointer like shared pointer