Array Generator

Write a function called solution that takes in a number and returns an array with the length equal to the input number.

Every element in the array must numbered with the correct index: 0,1,2,3,4...

solution(5) // returns [0,1,2,3,4]
solution(3) // returns [0,1,2]