Morgan Stanley Interview Question

Talk about smart pointer