Atlassian interview question

Find max sum subarray