Morgan Stanley interview question

Math problems and coding questions