Infosys Compaz Interview Question

Max sum subarray from leetcode