Find the Longest Palindromic Substring Program in Java