Testsigma interview question

Finding max sub array sum which contains negative and Positive numbers?