Leetcode 1685. Sum of Absolute Differences in a Sorted Array | Hello Interview