Amazon interview question

Debugging questions and a simple question..e.g. substring of a palindrome