<p>Given an array of integers <code>arr</code>, and three integers <code>a</code>, <code>b</code> and <code>c</code>. You need to find the number of good triplets.</p>
<p>A triplet <code>(arr[i], arr[j], arr[k])</code> is <strong>good</strong> if the following conditions are true:</p>
<ul>
<li><code>0 <= i < j < k < arr.length</code></li>
<li><code>|arr[i] - arr[j]| <= a</code></li>
<li><code>|arr[j] - arr[k]| <= b</code></li>
<li><code>|arr[i] - arr[k]| <= c</code></li>
</ul>
<p>Where <code>|x|</code> denotes the absolute value of <code>x</code>.</p>
<p>Return<em> the number of good triplets</em>.</p>