Pergunta de entrevista da empresa IBM

Javascript basic logical questions like array based.