Pregunta de entrevista de Two Sigma

Max consecutive sum algorithm