Morgan Stanley interview question

Advanced C++ questions.