Morgan Stanley Interview Question

data structure