In Page 33 of the 1025 edition, is is stated that the brute force complexity for finding the maximum sub array sum is O(n^3). But there are only sigma(n)= O(n^2) sub-arrays. So even brute force should have a complexity of O(n^2).
I am unable to understand why the brute force solution requires O(n^3) time