Completed maxSum