add palindrome in ruby