Thoughtworks Interview Question

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