Morgan Stanley interview question

Asked about various algorithms and its time complexity