<p>We define a harmonious array as an array where the difference between its maximum value and its minimum value is <b>exactly</b><code>1</code>.</p>
<p>Given an integer array <code>nums</code>, return <em>the length of its longest harmonious subsequence among all its possible subsequences</em>.</p>
<p>A <strong>subsequence</strong> of array is a sequence that can be derived from the array by deleting some or no elements without changing the order of the remaining elements.</p>