Pregunta de entrevista de Google

Max Consecutive one's in an array