Assent LLC interview question

Valid palindrome - could easily do it using two ptrs