Given an array of integers
arr, and three integersa,bandc. You need to find the number of good triplets.A triplet
(arr[i], arr[j], arr[k])is good if the following conditions are true:
0 <= i < j < k < arr.length|arr[i] - arr[j]| <= a|arr[j] - arr[k]| <= b|arr[i] - arr[k]| <= cWhere
|x|denotes the absolute value ofx.Return the number of good triplets.