Leetcode Question On Recursion In Python Code Examples