Why is my Java palindrome code returning Time Limit Exceeded

visit shbcf.ru