Given an array of integers, find the contiguous subarray which has the largest sum and return its sum.