Rosetta Problems

Number of Same-End Substrings

https://leetcode.com/problems/number-of-same-end-substrings