Morgan Stanley interview question

design question