MAQ Software Interview Question

3. Write a program to count maximum consecutive one's in an array or string