[palindrome] Introduced the brute-force method