Editorial for LCC '21 Contest 1 S2 - Tracy's Palindromes
Submitting an official solution before solving the problem yourself is a bannable offence.
Each consecutive section of the same letter can be reduced to a number representing the number of characters in the section and stored in a list. All combinations of consecutive numbers can then be tested for problem requirements. Numbers on the edge of the list of tested numbers can be larger than one more than the number immediately inwards.