Rosetta Problems

Count Alternating Subarrays

https://leetcode.com/problems/count-alternating-subarrays