i have an array declared as 3 x 26 but only some of the elements are used (actually in this case 15)
row 0 has 8 elements used
row 1 has 2 elements used
row 2 has 5 elements used

i then create a string row 0 element 0 + row 1 element 0 + row 2 element 0
then the next string created is row 0 element 0 + row 1 element 0 + row 2 element 1 and so on until the last string created is row 0 element 7 + row 1 element 1 + row 2 element 4 ie the last possible combination.

In this case it makes 80 combinations but different inputs might make a different combination of combinations

how can i create a versatile array that will hold any number of combinations