Easy Java using Map
\n\n# Code\n\nclass Solution {\n    public int maximumNumberOfStringPairs(String[] words) {\n        int ans = 0;\n        Map<String, Integer> wordss= new Hash
\n\n# Code\n```\nclass Solution {\n    public int maximumNumberOfStringPairs(String[] words) {\n        int ans = 0;\n        Map<String, Integer> wordss= new HashMap<>();\n\n        for (String a : words) {\n            String rWord = new StringBuilder(a).reverse().toString();\n            int cnt = wordss.getOrDefault(rWord, 0);\n            ans += cnt;  \n            wordss.put(a, cnt + 1);  \n        }\n\n        return ans;\n    }\n}\n```
['Hash Table', 'Ordered Map', 'Java']