Pregunta de entrevista de Morgan Stanley

like how would you implement a smart pointer