Given an N by N matrix, output a new (N-2) by (N-2) matrix. Each element of the new matrix corresponds to the maximum value in each 3 by 3 region of the original matrix.
For example, if the original matrix is
10 20 30 90 30
50 60 30 20 50
80 50 70 60 20
90 40 30 20 80
20 30 40 50 90
the new matrix will be
80 90 90
90 70 80
90 70 90
N, 3 ≤ N ≤ 10
An N by N matrix, each element is an integer
A new (N-2) by (N-2) matrix
Use “%d ” to print each element and add a newline at the end of each row.