<p>The <strong>complement</strong> of an integer is the integer you get when you flip all the <code>0</code>'s to <code>1</code>'s and all the <code>1</code>'s to <code>0</code>'s in its binary representation.</p>
<ul>
<li>For example, The integer <code>5</code> is <code>"101"</code> in binary and its <strong>complement</strong> is <code>"010"</code> which is the integer <code>2</code>.</li>
</ul>
<p>Given an integer <code>n</code>, return <em>its complement</em>.</p>
<strong>Explanation:</strong> 10 is "1010" in binary, with complement "0101" in binary, which is 5 in base-10.
</pre>
<p> </p>
<p><strong>Constraints:</strong></p>
<ul>
<li><code>0 <= n < 10<sup>9</sup></code></li>
</ul>
<p> </p>
<p><strong>Note:</strong> This question is the same as 476: <ahref="https://leetcode.com/problems/number-complement/"target="_blank">https://leetcode.com/problems/number-complement/</a></p>