ADDO AI interview question

Write an algorithm to check if the string is palindrome.