Find root from child adjacency lists | Bloomberg