Microsoft interview question

Find the maximum consecutive sum in an array