General Motors (GM) interview question

How would you solve a palindrome?