Otipy Internet interview question

Q how will you solve the code for pallindrome