Morgan Stanley interview question

general question on C++