Maximum Submatrix Leetcode Javascript Problems