Pergunta de entrevista da empresa Qualtrics

Given an array of integers, find the greatest consecutive sum.