LinkedIn interview question

Find maximum successive sum in a array