Maximum Sum Obtained of Any Permutation
Count how many requests cover each position with a difference array, then pair the largest values with the largest counts.
Count how many requests cover each position with a difference array, then pair the largest values with the largest counts.