Leetcode Maximum Recursion Depth Exceeded In Python What Is One Function