Company: Future_first_17nov
Difficulty: medium
Matrix Challenge Problem Description Have the function MatrixChallenge(strArr) take the strArr parameter being passed which will be a 2D matrix of 0 and 1's, and determine the area of the largest rectangular submatrix that contains all 1's. For example: if strArr is ["10100", "10111", "11111", "10010"] then this looks like the following matrix 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 For the input above, you can see the bolded 1's create the largest rectangular submatrix of size 2x3, so your program should return the area which is 6. Examples Example 1: Input: ["1011", "0011", "1111"] Output: 8 Example 2: Input: ["101", "111", "001"] Output: 3 Constraints You can assume the input will not be empty.