Dodles interview question

check if string is palindrome