Sponge Forums
Kailang
You can query
all
the substrings of a string with
isPalindrome
in
O(n^2)
time.