Question d’entretien chez Microsoft

Find max subarray length having highest sum