my python solution without loop, beat 100%
\n\nclass Solution(object):\n    def strWithout3a3b(self, A, B):\n        """\n        :type A: int\n        :type B: int\n        :rtype: str\n        """\n   
\n```\nclass Solution(object):\n    def strWithout3a3b(self, A, B):\n        """\n        :type A: int\n        :type B: int\n        :rtype: str\n        """\n        if A >= 2*B:\n            return \'aab\'* B + \'a\'* (A-2*B)\n        elif A >= B:\n            return \'aab\' * (A-B) + \'ab\' * (2*B - A)\n        elif B >= 2*A:\n            return \'bba\' * A + \'b\' *(B-2*A)\n        else:\n            return \'bba\' * (B-A) + \'ab\' * (2*A - B)\n```
[]