Amazon Interview Question

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