GIVEN: a numpy array, a, where each successive pair of elements shares an element with some other pair in the row. Spaces have
a