Morgan Stanley Interview Question

design question