You are given an array of integers. Find the number of subarrays that satisfy the following condition:
Input format
Output format
For each test case, print the number of subarrays that satisfy the provided condition in a new line.
Constraints
7 subarrays satisfy the given condition.