Question d’entretien chez TIAA

How to check if a string is a palindrome using an array?