TD interview question

Python coding - fetch longest palindromic substring