Morgan Stanley Interview Question

What is smart pointer, how is it implemented.