Sum of Pair Differences

Company: Visa_10sep

Difficulty: easy