Longest repeated string length
Find the longest repeated repeated string length from given input Input is a long string without space
12223
3