We need to find the minimum sum of the distances between an element in the array and the k-elements of the array, not including that element.
For example: