General Motors (GM) Interview Question

They were all very simple question. Like for example: write an algorithm that determines if a word is a palindrome.