Min Path Sum Leetcode Python Coding