<p>You are given an integer array <code>nums</code> and an integer <code>goal</code>.</p>
<p>You want to choose a subsequence of <code>nums</code> such that the sum of its elements is the closest possible to <code>goal</code>. That is, if the sum of the subsequence's elements is <code>sum</code>, then you want to <strong>minimize the absolute difference</strong><code>abs(sum - goal)</code>.</p>
<p>Return <em>the <strong>minimum</strong> possible value of</em><code>abs(sum - goal)</code>.</p>
<p>Note that a subsequence of an array is an array formed by removing some elements <strong>(possibly all or none)</strong> of the original array.</p>