n class="s">"Dorothy Vaughan"</span><span class="p">,</span>
    <span class="s">"Dorothy Vaughan"</span>
<span class="p">};</span>

<span class="n">deduplicate</span><span class="p">(</span><span class="n">hiddenFigures</span><span class="p">);</span>
<span class="c1">// hiddenFigures = ["Katherine Johnson", "Mary Jackson", "Dorothy Vaughan‚Äù]</span>
</code></pre></div></div>
<p>The problem is that the above implementation of <code class="language-c++ highlighter-rouge"><span class="n">deduplicate</sp