Pergunta de entrevista da empresa Procurify

Given a string input, write an algorithm to determine if it is a palindrome.