Atlassian Interview Question

Find max sum subarray