Index Pairs of a String

Solve Index Pairs of a String.

Examples
Input: []
Output: 0
Hints

Index Pairs of a String

Solve **Index Pairs of a String**. This entry was scaffolded in Trie Mastery migration and should be refined with full statement/examples.