Ooyala Interview Question

Find the maximum-sum subarray of an array.