Small and nice problem:
An N×N matrix is valid if every column and row contains all integers from 1 to N.
Return true if the matrix is valid
An N×N matrix is valid if every column and row contains all integers from 1 to N.
Return true if the matrix is valid