Expand right; if duplicate inside window, move left past previous occurrence.
Input
abcabcbb
Output
3
bbbbb
1