my version of a job test's string palindrome in ruby.