The inputs for the function are
- a list of characters, eg:
['a','1'] - length of combinations
The function should output a list of all possible character combinations as a list.
For example, for input ['a','1'] and length of 2, the function should output:
[['a','a'],
['a','1'],
['1','a'],
['1','1']]
and if the length is 3, the output should be:
[['a','a','a'],
['a','a','1'],
['a','1','a'],
['a','1','1'],
['1','a','a'],
['1','a','1'],
['1','1','a'],
['1','1','1']]