Min Path Sum Leetcode Python Problems