Python beats 91%
\nclass Solution:\n    def strWithout3a3b(self, a: int, b: int) -> str:\n        res = []\n        while a + b > 0:\n            if len(res) >= 2 and res[-2:] =
```\nclass Solution:\n    def strWithout3a3b(self, a: int, b: int) -> str:\n        res = []\n        while a + b > 0:\n            if len(res) >= 2 and res[-2:] == [\'a\', \'a\']:\n                res.append(\'b\')\n                b-=1\n            elif len(res) >= 2 and res[-2:] == [\'b\', \'b\']:\n                res.append(\'a\')\n                a-=1\n            elif a > b:\n                res.append(\'a\')\n                a-=1\n            else:\n                res.append(\'b\')\n                b-=1\n            \n        return \'\'.join(res)\n```
['Python', 'Python3']