• + 1 comment

    your program is giving total number of ones. Its not giving highest number of consecutive ones.