Morgan Stanley interview question

Design questions for certain infra