Driver Code
a1 = [ " aba " , " aba " ] NEW_LINE n1 = len ( a1 ) NEW_LINE longestPalindrome ( a1 , n1 ) NEW_LINE a2 = [ " abc " , " dba " , " kop " , " abd " , " cba " ] NEW_LINE n2 = len ( a2 ) NEW_LINE longestPalindrome ( a2 , n2 ) NEW_LINE