Question d’entretien chez Morgan Stanley

maximum contiguous subarray, what's your algo?