Pregunta de entrevista de Microsoft

Find the maximum consecutive sum in an array