Testsigma Interview Question

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