Morgan Stanley interview question

maximum contiguous subarray, what's your algo?