<p>You are given a <strong>0-indexed</strong> array <code>nums</code> that consists of <code>n</code><strong>distinct</strong> positive integers. Apply <code>m</code> operations to this array, where in the <code>i<sup>th</sup></code> operation you replace the number <code>operations[i][0]</code> with <code>operations[i][1]</code>.</p>
<p>It is guaranteed that in the <code>i<sup>th</sup></code> operation:</p>
<ul>
<li><code>operations[i][0]</code><strong>exists</strong> in <code>nums</code>.</li>
<li><code>operations[i][1]</code> does <strong>not</strong> exist in <code>nums</code>.</li>
</ul>
<p>Return <em>the array obtained after applying all the operations</em>.</p>