Google interview question

Max Consecutive one's in an array