RohitMaximum sum of lengths of non-overlapping subarrays with k as the max element.Find the maximum sum of lengths of non-overlapping subarrays (contiguous elements) with k as the maximum element. Examples:Apr 25, 2022Apr 25, 2022