Sum Of Absolute Differences In A Sorted Array