Create and Fill Array

Create and Fill Array

Given an integer n, create and return an array of length n with values from 1 to n+1.

createAndFill( 3 ) => [ 1, 2, 3 ]
createAndFill( 1 ) => [ 1 ]
createAndFill( 0 ) => [ ]
createAndFill( 7 ) => [ 1, 2, 3, 4, 5, 6, 7 ]

You can assume \(0 <= n <= \text{Integer.MAX_VALUE}\)