You are given an array A of N 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
1≤T≤101≤N≤1051≤A[i]≤100
7 subarrays satisfy the given condition.