Pergunta de entrevista da empresa Principal Financial Group

Solve a array problem, and behavioral