提示词
Write a Python function that returns the longest palindromic substring of a string. Explain the approach briefly, then give the code with type hints.
Write a Python function that returns the longest palindromic substring of a string. Explain the approach briefly, then give the code with type hints.