Find values that overlap in two arrays efficiently and save them out in a third array
<p>Assuming I have the 2 arrays...</p>

<pre><code>string[] a = {"a", "b", "c", "d", "e", "f", "h", "i", "j", "k"};
string[] b = {"a", "c", "d", "e", "g"};
string[] c;
</code></pre>

<p>I want to create a resulting array c which has a list of the values that overlap. So for the above I would get the following result:</p>

<pre><code>c = {"a", "c", "d", "e"};
</code></pre>

<p>How can I do this efficiently?</p>
