Morgan Stanley interview question

Data Structures Big-O