Go | Straightforward
\nfunc maximumNumberOfStringPairs(words []string) int {\n    res := 0\n    h := make(map[string]bool)\n    for _, w := range words {\n        if r := fmt.Sprint
```\nfunc maximumNumberOfStringPairs(words []string) int {\n    res := 0\n    h := make(map[string]bool)\n    for _, w := range words {\n        if r := fmt.Sprintf("%c%c", w[1], w[0]); h[r] {\n            res++\n        } else {\n            h[w] = true\n        }\n    }\n    return res\n}\n```
['Go']