MAQ Software interview question

To find the subarray with maximum sum