Solved problem 84: Transitive Closure.

Used into and for/loop combination. Can be simplified?