How can we find is the sum of exactly k elements from an array of size n is equal to a particular value b?
suppose a[n] = {1, 5, 7, 11, 12}
k = 3
b = 23
res = {1+5+7, 1+5+11, 1+5+12, 1+7+11, 1+7+12, 1+11+12, 5+7+11, 5+7+12, 5+11+12, 7+11+12 }
res = {13, 17, 18, 19, 20, 24, 23, 24, 28, 30}
so b=23 is present in res, then return true
if b is 22 is not present, then return false