HashStudioz Interview Question

Basic js questions, basic array coding