Boxing Day Countdown

Recursion Holiday Coding Problem

Problem Description

On Boxing Day, take a moment to reflect on the year by counting down the days leading up to the New Year. Your task is to implement a recursive function that takes a non-negative integer n and returns an array (or list) of integers counting down from n to 0.

Requirements

  • Use recursion to build the countdown.
  • Do not use loops (for, while, etc.).
  • Ensure the function handles the case when n is 0 correctly.

Example

For example, if n = 5, the function should return:

[5, 4, 3, 2, 1, 0]

Starter Code

Below is some language-agnostic starter code to help you begin your solution.