Runtime 2 ms Beats 70.40%   Memory 17.55 MB Beats 78.50%
:):Code
:):

# Code
```python3 []
class Solution:
    def maximumNumberOfStringPairs(self, words: List[str]) -> int:
        ans = 0
        n = len(words)
        for i in range(n):
            for j in range(i+1,n):
                if words[i][::-1] == words[j]:
                    ans +=1
                    continue
        return ans
```
['Python3']