Pergunta de entrevista da empresa Celsior Technologies

JS concepts, coding question on array.