Pregunta de entrevista de PointClickCare

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