I have two arrays of integers A and B both of size n. The cost of a pair is |a - b|. I want to pair the n elements of A and B such that the sum of all costs across all a\'s and