starting 0 letter a length 0 new a start of new mid a starting 1 letter b length 1 new b start of new a it 1 mid bab bab