Myntra interview question

Find subarray with maximum sum