Veilant interview question

There one question was Is string palindrome.