I'm trying to write an algorithm that will take a group of letters and a int containing the size of the word and create every possible grouping of letters for this, but I'm totally stuck...
Example:
**Input**
Letters: E
Size: 4
**Output**
E___
E_E_
_E_E
EE__
_EE_
___E
etc..
Another example
**Input**
Letters: E, A
Size: 4
**Output**
EA__
AE__
E_A_
_E_A
A_E_
etc...