Square in a Graph

Solution to Rosalind Algorithmic Heights Problem 021: Square in a Graph