Given a m x n matrix where each row and column is sorted in non-increasing order, return the number of negative numbers.
Start from top-right corner. Move left if current is negative (count all below in this column), move down if positive.
- r=0, c=n-1, count=0.
- While r
=0: if grid[r][c]<0: count+=m-r; c--; else r++.
- Time Complexity: O(M+N)
- Space Complexity: O(1)