Amazon Interview Question

Programming Question 1: Write a function to determine the longest palindromic substring of a given string.