LeetCode
Index Pairs of a String
Click
here
for an explanation.