Sanket and strings


what is the problem with this code

can u please help with this code

for test case
2
abbbababbaba

answer should be 8 not 9
debug for this

do we need to generate all the sub string for that

abbbbbbbbaba is the reason for 8