ChatGPT - Optimal Time Complexity Palindrome