DBS Bank interview question

Longest Palindromic substring ques from leetcode