HF RL Explorer

Task: Implement and Trace a Recursive Sum Function

Task: Implement and Trace a Recursive Sum Function: a task in Terminal-Lego-15k (Harbor dataset). Your task is to implement a recursive function that calculates the sum of all integers from a to b (inclusive), and create a trace output that demonstrates your understanding of how the recursion works.

The task

Your task is to implement a recursive function that calculates the sum of all integers from `a` to `b` (inclusive), and create a trace output that demonstrates your understanding of how the recursion works.

Part of PrimeIntellect/Terminal-Lego-15k.