lastEven to -1, which will hold the index of the last even number encountered.count to 0, which will hold the count of subarrays with an even product.i.
a. If nums[i] is even, update lastEven to i.
b. Add lastEven + 1 to count, as all subarrays ending at i that start before or at lastEven will have an even product.count.