Pergunta de entrevista da empresa EPAM Systems

Java questions, longest palindrome substring and duplicates in array