Morgan Stanley interview question

Stack, queue and sorting algorithm