// 164.) Given a sorted array arr[] and a target value, the task is to count triplets (i, j, k) of // valid indices, such that arr[i] + arr[j] + arr[k] = target and i < j < k.