Payconiq interview question

Write algorithm to check if word is palindrome