Delinea interview question

Implement smart pointer like shared pointer