Pergunta de entrevista da empresa Thomson Reuters

Iterate through array and identify possible patterns.