Goldman Sachs Interview Question

Find max sum of subarray for the given integer array.