Morgan Stanley interview question

previous experience + brain teaser + programming question