Input: M = {{1, 2, 2}, {1, 5, 6}, {3, 8, 9}}
Output: {{1, 1}}
Explanation: The sum of elements of rows and columns of matrix M are:
| C = 1 | C = 2 | C = 3 | Sum of Rows |
R = 1 | 1 | 2 | 2 | 5 |
R = 2 | 1 | 5 | 6 | 12 |
R = 3 | 3 | 8 | 9 | 20 |
Sum of Columns | 5 | 15 | 17 | |
Thus, row 1 and columns 1 has same sum.
Input: M = {{1, 2, 3, 4}, {2, 5, 8, 7}, {3, 8, 9, 3}, {0, 6, 3, 2}}
Output: {{3, 3}}