SAP Interview Question

Write a code that would check if a given word is palindrome