Count of subarrays whose maximum element is greater than k
Given an array of n elements and an integer k. The task is to find the count of the subarray which has a maximum element greater than K. Examples : Input : arr[] = {1, 2, 3} and k = 2.Output : 3All the possible subarrays of arr[] are { 1 }, { 2 }, { 3 }, { 1, 2 }, { 2, 3 }, { 1, 2, 3 }.Their maximum