I have an array:
array1 = [0, 0, 0, 1, 1, 2, 1, 2, 2, 1]
I\'d like to iterate through the elements and if there is a 2 that is not next to an