An array is given. say, [1,9,7,4,2] and a target is given 14, so the question asks to find collection of elements of min length upon which the sum of elements of selected arrray should be closest to the target sum. so say [1,9,4] [1,7,4,2] have sum 14 which is equal to given target sum, we need to give [1,9,4] as output. it is to be noted that this sum which has been found out needs to be closest to target sum and not necessarily equal.