Celsior Technologies interview question

JS concepts, coding question on array.