Pergunta de entrevista da empresa TD

I was asked to solve a coding problem involving strings and palindromes. The interviewer mentioned that time complexity didn’t matter; the only expectation was to provide a working solution without errors, no explanation required.