Pergunta de entrevista da empresa PointClickCare

valid palindrome, There may be another algorithm if I solve, They left 20 mins for lc round overall.