Morgan Stanley interview question

Algorithms , datastructures