Morgan Stanley interview question

There are some technical questions