How can I combine/concatenate elements of an array based on bits of an int?
<p>I would like to concatenate strings (from an array) based on an input int value.</p>

<p>For example:</p>

<pre><code>int Input = 3;
string[] Items = {"A", "B", "C", "D"};
// output = "A, B"

// example 2: input = 8
// output = "D"
</code></pre>

<p>The first element of the array (0) should be associated with the least significant bit of the input value. Values in the array are concatenated with a string such as "," or "+".</p>

<p>What's a good way to do this?</p>
