Pregunta de entrevista de ITrust

javascript question based on arrays