Complete countAdjacentPairs challenge