Morgan Stanley interview question

data structure and design questions