Recursion In Python Leetcode Questions