Recursion In Python Leetcode Solution Book