Path Sum Leetcode Python Questions