Two Sigma Interview Question

Graph Transitive Closure