Question d’entretien chez ADDO AI

Write an algorithm to check if the string is palindrome.