FIS interview question

write code for smart pointer