int length = 0;
int length 2 = 0;
for(int I = 0; I & ltn;; i++)
{
If (i == 0)
temp = b[I];
other
if(temp == b[i])
Length++;
If (length & gt length 2)
Length2 = length;
Length = 2;
}