<p>You are given an array <code>nums</code> of non-negative integers. <code>nums</code> is considered <strong>special</strong> if there exists a number <code>x</code> such that there are <strong>exactly</strong><code>x</code> numbers in <code>nums</code> that are <strong>greater than or equal to</strong><code>x</code>.</p>
<p>Notice that <code>x</code><strong>does not</strong> have to be an element in <code>nums</code>.</p>
<p>Return <code>x</code><em>if the array is <strong>special</strong>, otherwise, return </em><code>-1</code>. It can be proven that if <code>nums</code> is special, the value for <code>x</code> is <strong>unique</strong>.</p>