Sum of Absolute Differences in a Sorted Array

Sum of Absolute Differences in a Sorted Array - Coding Problem | K5kC