Sedco interview question

Write an algorithm to find sequences of ones in an array