Zscaler interview question

find if a string is palindrome