count subarrays of length three with a condition solution

join shbcf.ru