Plusgrade interview question

Palindrome question