Use DP to solve the number of ways when walking a grid, O(m x n) solution.