Morgan Stanley Interview Question

data structure and design questions