given an array of integers with repeating elements, find sum of differences between positions of repeated elements and store them in an array of same size
0
Given an array of integers with repeating elements, find sum of differences between positions of repeated elements and store them in an array of same size.