Pregunta de entrevista de Thoughtworks

Coding ques- write a program to find largest palindrome in a dynamically inputted string.