MAERSK Interview Question

Longest sum of the subarray within an array?