Pergunta de entrevista da empresa IBM

An array question and another array question