Anonymous Interview Question

Palindrome substrings count using Py