Morgan Stanley interview question

Design a process queue and explain throughout, the flow with reason