Beginner here with coding problem

As mentioned before by AWOL, a pair of nested loops will solve your problem.
Here is an example: (You may need to change how the for-loop goes through the array to print the values in the order you want.)

// loops through the rows of the tempArray ( 0 to 3)
for (int row = 0; row < 4;  row++) { 
    // loops through the column of the tempArray ( 0 to 3)
    for (int column = 0; column < 4;  column++) { 
        // Print the value to the serial port
        Serial.print(tempArray[row ][column ] );
    }
}