FIS Interview Question

write code for smart pointer