Pregunta de entrevista de IBM

Javascript basic logical questions like array based.