Rocketlane Interview Question

Find consecutive number of one's in an array