Pregunta de entrevista de AT&T

Given a string, return true if it’s a palindrome, return false if it’s not.