Morgan Stanley interview question

Data Structure and algorithm, Agile