you give integer array num integer goalYou want choose subsequence num sum element close possible goal that sum subsequence element sum want minimize absolute difference abssum goalreturn minimum possible value abssum goalNote subsequence array array form remove element possibly original array Example 1input num 5735 goal 6output 0explanation Choose array subsequence sum 6this equal goal absolute difference 0example 2input num 79152 goal 5output 1explanation Choose subsequence 792 sum 4the absolute difference abs4 5 abs1 1 minimumExample 3input num 123 goal 7output 7 Constraints1 numslength 40107 numsi 107109 goal 109