Making permutations with array of chars
<p>So the problem is like this, user inputs n (integer) and n chars. I have to make program that writes out all combinations of 2 up to n chars from the chars I am given. You can not use same char twice, however user can write same char multiple times so you can use it as many times as he wrote it (say user writes 'a' twice, you can use it up to two times then).</p>

<p>It doesn't matter whether the "words" you type out make sense or not. Also you can treat array of chars as an array of indexes (in other words, if user writes "aa" then you should have following outcome "aa, aa" so first aa represents combination of first a then second a, and second aa represents second a, then first a). So here is an example of how it should look for input of "two" the output should be "tw, wo, to, wt, ow, ot, two, tow, wto, wot, otw, owt" (the order doesn't matter, I may have forgotten some combination, but you get the point).</p>
