Given an array of integers, A1, A2, ..., An, and integers P, C.
Find a count C of sets of integers from array A where the sum is as close to P as possible and as many elements as possible should be used.
Example
A = [3, 7, 2, 7, 25, 10, 5, 12, 1]
P = 15
C = 4
S1 = [3, 5, 7] = 15
S2 = [2, 5, 7, 1] = 15
S3 = [3, 5, 7, 1] = 16
S4 = [2, 7, 7] = 16