MISO Interview Question

Find the maximum contiguous subarray for the given array X.