You are given an array .
The closeness between two indices is equal to .
Find the maximum possible closeness between two indices in the given array.
The closeness between indices 2 and 3 is 5, since .
The closeness between indices 1 and 3 is 2, since .
All numbers are equal, so the closeness between any two indices is 0, since .