Pergunta de entrevista da empresa Broadcom

Write a function that takes a string and returns true if the string is a palindrome (reads the same forward and backward) and false otherwise.