Fill in printGrid so that it prints each row on its own line, with the values separated by a single space and a trailing space after each value.
printGrid
1 2 3 4