3392. count subarrays of length three with a condition