Path Sum Iii Leetcode Problems Python