twoTwo: is every 2 next to another 2?

Given an array of ints, return true if every 2 that appears is next to another 2. Step through twoTwo: when the for loop lands on a 2, the inner while loop walks along the whole run of 2s, counting them. A run of just one 2 means a lonely 2.