1 2 3 4 5 6 7
def outer(n: int) -> int: base = 10 def go(k: int) -> int: if k <= 0: return base return go(k - 1) + base return go(n)