Interview problem for Spiral Genetics. Script to read values, convert them into a graph, and detect cycles in the graph.