What is wrong with this code

Please provide the test cases for which the answer is wrong

1
abbaa
correct ouput should be 2