palindrome_O(1) space