<p>We have an array of integers, <code>nums</code>, and an array of <code>requests</code> where <code>requests[i] = [start<sub>i</sub>, end<sub>i</sub>]</code>. The <code>i<sup>th</sup></code> request asks for the sum of <code>nums[start<sub>i</sub>] + nums[start<sub>i</sub> + 1] + ... + nums[end<sub>i</sub> - 1] + nums[end<sub>i</sub>]</code>. Both <code>start<sub>i</sub></code> and <code>end<sub>i</sub></code> are <em>0-indexed</em>.</p>
<p>Return <em>the maximum total sum of all requests <strong>among all permutations</strong> of</em><code>nums</code>.</p>
<p>Since the answer may be too large, return it <strong>modulo</strong><code>10<sup>9</sup> + 7</code>.</p>