
1. Binary-valued matrix has either 0 or 1 in each cell.
2. A submatrix is a matrix formed by selecting certain rows and columns from a larger matrix.

In the above image, areas in green, red, and violet colour are all submatrices of the original 4x4 matrix.
3. The area of a matrix with 'H' rows and 'W' columns is equal to 'H' * 'W'.
The first line of the input contains an integer 'T' denoting the number of test cases.
The first line of each test case contains two space-separated integers 'N' and 'M'.
Then each of the next 'N' lines of each test case contains 'M' space-separated integers(either 1 or 0).
Print the area of maximum size submatrix of all 1s in the given matrix.
Print the output of each test case in a separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 50
1 <= N, M <= 100
Time Limit: 1 sec
The final algorithm will be-