Pergunta de entrevista da empresa Chronus

Maximum Consecutive sum in an array. And the other question is also similar to this