An n x n matrix is valid if every row and every column contains all the integers from 1 to n (inclusive).
Given an n x n integer matrix matrix, return true if the matrix is valid. Otherwise, return false.
n == matrix.length == matrix[i].length1 <= n <= 1001 <= matrix[i][j] <= nmatrix = [[1,2,3],[3,1,2],[2,3,1]]truematrix = [[1,1,1],[1,2,3],[1,2,3]]false