Pergunta de entrevista da empresa Workday

One question they asked me was to implement a function that checks whether a given string is a palindrome, ignoring spaces, punctuation, and case sensitivity.