Morgan Stanley Interview Question

Stack, queue and sorting algorithm