Apple interview question

C++ basics. i.e. Smart pointer usage