YES interview question

check if string is a palindrome