Qualtrics Interview Question

I had to test whether a string was palindrome.