Count subarrays where sum of first and third elements equals half of the second element.
Count numbers which has even number of digits.
Count how many subarrays contain all distinct elements present in the original array.
Find the maximum XOR result for each query on an array.
Count all subarrays where the maximum element appears at least k times
Count all the subarrays where product of sum and length is less than k