Count subsequences having average of its elements equal to K
Given an array arr[] consisting of N integers and an integer K, the task is to count the number of subsequences of the given array with average K. Examples: Input: arr[] = {9, 7, 8, 9}, K = 8Output: 5Explanation: The subsequences having average 8 are {8}, {9, 7}, {7, 9}, {9, 7, 8}, {7, 8, 9}. Input: