<p>You are given an array <code>nums</code> that consists of non-negative integers. Let us define <code>rev(x)</code> as the reverse of the non-negative integer <code>x</code>. For example, <code>rev(123) = 321</code>, and <code>rev(120) = 21</code>. A pair of indices <code>(i, j)</code> is <strong>nice</strong> if it satisfies all of the following conditions:</p>
<ul>
<li><code>0 <= i < j < nums.length</code></li>
<p>Return <em>the number of nice pairs of indices</em>. Since that number can be too large, return it <strong>modulo</strong><code>10<sup>9</sup> + 7</code>.</p>