How many substrings of a string read the same forwards and backwards? Start naive, then optimise. Too many requests from your network. Please wait a minute.