Max Pair Sum in an Array
Pair each number with an earlier number that has the same largest digit, keeping the largest earlier value for each digit.
Pair each number with an earlier number that has the same largest digit, keeping the largest earlier value for each digit.