Epic interview question

Palindrome coding question need to solve