MISO interview question

Find the maximum contiguous subarray for the given array X.