HashStudioz interview question

Basic js questions, basic array coding