Morgan Stanley interview question

c++ questions