FactSet interview question

Maximum adjacent value array problem