Leetcode 1065. Index Pairs of a String | Hello Interview