Morgan Stanley interview question

Technical questions mostly