LeetCode
Longest Palindrome
Click
here
for an explanation.