<p>You are given a string <code>s</code> of length <code>n</code> where <code>s[i]</code> is either:</p>
<ul>
<li><code>'D'</code> means decreasing, or</li>
<li><code>'I'</code> means increasing.</li>
</ul>
<p>A permutation <code>perm</code> of <code>n + 1</code> integers of all the integers in the range <code>[0, n]</code> is called a <strong>valid permutation</strong> if for all valid <code>i</code>:</p>
<li>If <code>s[i] == 'I'</code>, then <code>perm[i] < perm[i + 1]</code>.</li>
</ul>
<p>Return <em>the number of <strong>valid permutations</strong></em><code>perm</code>. Since the answer may be large, return it <strong>modulo</strong><code>10<sup>9</sup> + 7</code>.</p>