[Java] Easy 100% solution
java\nclass Solution {\n    public int maximumNumberOfStringPairs(final String[] words) {\n        int count = 0;\n\n        for (int i = 0; i< words.length; i+
```java\nclass Solution {\n    public int maximumNumberOfStringPairs(final String[] words) {\n        int count = 0;\n\n        for (int i = 0; i< words.length; i++)\n            for(int j=i+1; j<words.length; j++)\n                if(words[i].charAt(0) == words[j].charAt(1) && words[i].charAt(1) == words[j].charAt(0))\n                    count++;\n\n        return count;\n    }\n}\n```
['Java']