Goldman Sachs Interview Question

what is recursive algorithm waterflow