General Motors (GM) interview question

Basic palindrome identification problem.