is palindrome on int, constant space