Question d’entretien chez Microsoft

Find the maximum consecutive sum in an array