What is the weakness of recursive algorithms in general?
Implement recursion_risks(branching_factor, depth, stack_limit) to quantify two common weaknesses: excessive call volume and stack growth. Return a dictionary with total_calls, capped at 20015001 to avoid impractically large integers, peak_stack, and whether the stack limit is exceeded. Inputs are integers with branching_factor >= 1, depth >= 0, and stack_limit >= 1.
Example: (2, 3, 4) returns {"total_calls": 15, "peak_stack": 4, "stack_overflow": false}. Example: (3, 2, 2) returns {"total_calls": 13, "peak_stack": 3, "stack_overflow": true}.
def recursion_risks(branching_factor, depth, stack_limit):