Find the sequence with max sum within an array.