1582. Special Positions in a Binary Matrix
Given an
m x nbinary matrixmat, return the number of special positions inmat.A position
(i, j)is called special ifmat[i][j] == 1and all other elements in rowiand columnjare0(rows and columns are 0-indexed).