Sollicitatievraag bij Thoughtworks

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