https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description/
Given a m x n
matrix grid which is sorted in non-increasing order both row-wise and column-wise, return the number of negative numbers in the grid.
Here the question states that number are sorted in descending order in both vertically and horizontally.
For this question we have to figure out the pattern which can we seen below
eg.
**** -
*** - -
***- -