Pergunta de entrevista da empresa EY

C++ Question. How to use smart pointer.