Optimum Solutions interview question

Output of an array function in JS.