Question d’entretien chez LinkedIn

Find maximum successive sum in a array