Given a non-negative integer n, return a list containing the first n Fibonacci numbers. The Fibonacci sequence starts with 0 and 1, and each subsequent number is the sum of the two preceding ones. If n is 0, return an empty list.
Example:
Input:
n = 5
Output:
[0, 1, 1, 2, 3]
Reasoning:
The first five Fibonacci numbers are generated by starting with 0 and 1, then adding the two previous numbers to get each next value: 0, 1, 0+1=1, 1+1=2, 1+2=3.