CreatioSoft interview question

WAP longest palindrome in string?