https://leetcode.com/problems/maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold/
total number of ways to reach from first cell of matrix to last cell of matrix (Easy Dp solution)