Oracle interview question

Phone interview: Array question in javascript