added solution for the contiguous subarray with maximum sum