There is an m x n matrix that is initialised to all 0's. There is also a 2D array indices where each indices[i] = [r_i, c_i] represents a 0-indexed location to perform some increment operations on the matrix.
For each location indices[i], do both of the following:
r_i.c_i.Given m, n, and indices, return the number of odd-valued cells in the matrix after applying the increment to all locations in indices.
1 <= m, n <= 501 <= indices.length <= 1000 <= r_i < m0 <= c_i < nm = 2, n = 3, indices = [[0,1],[1,1]]6m = 2, n = 2, indices = [[1,1],[0,0]]0