Fiserv interview question

question about palidrome from leetcode