Paycom interview question

Valid Palindrome leetcode style question