Rosetta Problems

Count Prefix and Suffix Pairs I

https://leetcode.com/problems/count-prefix-and-suffix-pairs-i