max sum sub-array problem

Given an array of real numbers, you have to find the sum of subarray
which has maximum sum