Pregunta de entrevista de MAERSK

Longest sum of the subarray within an array?