Pergunta de entrevista da empresa EarnUp

Write a function to detect whether a string is a palindrome. Check each character only once.