MAERSK interview question

Longest sum of the subarray within an array?