Pergunta de entrevista da empresa Charles Schwab

gave a problem and asked to draw the flow.