Rosetta Problems

Count Subarrays of Length Three With a Condition

https://leetcode.com/problems/count-subarrays-of-length-three-with-a-condition