Pergunta de entrevista da empresa Oracle

Phone interview: Array question in javascript