I believe this is a matrix type algorithm that you will need.
Arrays operate on locations of values... to do this you will need to use your single array
as the input values into your double array.
a for loop would do this nicely...
use multiple for loops...
//number of strings in array
//size of each string
//here is my thought in code...