this problem just consider whether this matrix is the right matrix.
we just consider each col,each row and each small matrix.
then I would like to focus on a small trick here
the two dimension matrix is a char matrix, if you want to use the number in this matrix, you should turn it into matrix[i][j] - '1'