Leetcode Maximum Recursion Python Questions