O(nlogn) solution to Array pair sum
O(nlogn) solution to Array pair sum