Grid Unique Paths Leetcode Solution Python