ServiceNow interview question

A typical Longest Palindromic Substring