Count Prefix and Suffix Pairs I

Solve Count Prefix and Suffix Pairs I.

Examples
Input: []
Output: 0
Hints

Count Prefix and Suffix Pairs I

Solve **Count Prefix and Suffix Pairs I**. This entry was scaffolded in Trie Mastery migration and should be refined with full statement/examples.