Pergunta de entrevista da empresa Sedco

Write an algorithm to find sequences of ones in an array