Given an Array A of N elements.
Find the count of sub-arrays, such that the product of elements in it is ODD.
Example
If A = [9, 6, 15, 7, 1] . There are 7 subarrays with product of elements as Odd.
Function Description
Complete the countSubarray function provided in the editor. This function takes the following 2 parameters and returns the count of sub-arrays with ODD product of elements.
Input :
1. First line contain an integer N, denoting number of elements.
2. Next line contain N space separated integers.
Constraints :
1 <= N <=
1 <= |A[i]| <=
Output :
Print number of sub-arrays with ODD product.
All subarrays except which include 2 are valid answers.