Solve unique paths ii problem in leetcode, bottom up DP, O(m * n).