Intuit Interview Question

algorithm to find execution order dependencies.