Solution to Basic Ruby Palindrome Exercise