Fibonacci Series by Recursion

Given a non-negative integer n, return the first n values of the Fibonacci sequence as an array. The sequence is defined by F(0) = 0, F(1) = 1, and F(k) = F(k - 1) + F(k - 2) for every k >= 2.

The intended solution is pure recursion. Build the sequence with a recursive function and do not use any loops. When n is 0, return an empty array.

Examples
Input: 5
Output: [0,1,1,2,3]
Hints

Fibonacci Series by Recursion

Given a non-negative integer `n`, return the first `n` values of the Fibonacci sequence as an array. The sequence is defined by `F(0) = 0`, `F(1) = 1`, and `F(k) = F(k - 1) + F(k - 2)` for every `k >= 2`.