Pergunta de entrevista da empresa Goldman Sachs

Find max sum of subarray for the given integer array.