Problem 2083 · Medium
Count substrings whose first and last characters match.
Open the interactive visualisation