check rotation is a palindrome or not