
We have an array of integers, nums , and an array of requests where requests[i] = [start _i , end _i ] . The i ^th request asks for the sum of nums[start _i ] + nums[start _i + 1] + ... + nums[end _i - 1] + nums[end _i ] . Both start _i and end _i are 0-indexed .
Return the maximum total sum of all requests among all permutations of nums .
Since the answer may be too large, return it modulo 10 ^9 + 7 .
n == nums.length1 <= n <= 10 ^50 <= nums[i] <= 10 ^51 <= requests.length <= 10 ^5requests[i].length == 20 <= start _i <= end _i < n