Question 179
Find the largest integer $k$ such that any string of $2025$ letters consisting only of $A$'s and $B$'s contains a palindromic substring of length $k$ or longer. A palindromic substring is a string of consecutive letters which reads the same backwards as forwards.