Morgan Stanley interview question

Search Algorithms.