Question d’entretien chez Amazon

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