using System;
public class Program
{
public static void Main()
Console.WriteLine(ReturnSubstringCount("11101110"));
Console.WriteLine(ReturnSubstringCount("110"));
}
public static int ReturnSubstringCount(String s){
int aux = 0;
int count = 0;
for(int i = 0; i < s.Length; i++){
//validate if the char in iteration is equals to 1 or not.
if(s[i].Equals('1')){
aux++;
//Save the biggest count at the moment.
if(aux > count){
count = aux;
//If the value in iteration is 0, the aux starts again from zero.
if(s[i].Equals('0')){
aux=0;
//Return the biggest count.
return count;