Morgan Stanley interview question

very technical