YES Interview Question

check if string is a palindrome