Count number of 1's at specific position in a matrix - II
Given a binary matrix mat[][] of size m*n (0-based indexing), the task is to return the total number of 1's in the matrix that follows the below two rules. i.e: Row R and column C both contain exactly N number of 1's.All rows with 1's in column C should be the same as the 1's present in row R.Examples: Input: mat = [[0, 1, 0, 1, 1, 0], [0, 1, 0, 1,