Count Prefix and Suffix Pairs (LeetCode)
Count pairs of indices where one string is both a prefix and suffix of another string.
Count pairs of indices where one string is both a prefix and suffix of another string.
solution to the leetcode problem Word Abbreviation.