Count of subarrays with average K
Given an array arr[] of size N, the task is to count the number of subarrays having an average exactly equal to k.Examples:Input: arr[ ] = {1, 4, 2, 6, 10}, N = 5, K = 4Output: 3Explanation: The subarrays with an average equal to 4 are {4}, {2, 6}, {4, 2, 6}.Input: arr[ ] = {12, 5, 3, 10, 4, 8, 10,