Python || Beginner Friendly
Complexity\n- Time complexity:\nO(n^2)\n\n- Space complexity:\nO(1)\n\n# Code\n\nclass Solution:\n    def maximumNumberOfStringPairs(self, words: List[str]) -> 
# Complexity\n- Time complexity:\nO(n^2)\n\n- Space complexity:\nO(1)\n\n# Code\n```\nclass Solution:\n    def maximumNumberOfStringPairs(self, words: List[str]) -> int:\n        cnt=0\n        for i in range(len(words)):\n            for j in range(i+1,len(words)):\n                if words[i]==words[j][::-1]:\n                    cnt+=1\n                    break\n        return cnt\n        \n```
['Python3']