ServiceNow Interview Question

A typical Longest Palindromic Substring