Iterating over 2D array and placing results in 1D array with the same number of elements

Sounds like this.