Morgan Stanley interview question

Math puzzles