C++ || 100% BEATS
Code\n\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        string ans = "";\n        while(a >= 1 && b>=1){\n            if(a-b>=1){\
# Code\n```\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        string ans = "";\n        while(a >= 1 && b>=1){\n            if(a-b>=1){\n                ans = ans+"aab";\n                a-=2;b--;\n            }else if(a==b){\n                ans += "ab";\n                a--;b--;\n            }else{\n                ans = ans+"bba";\n                a--,b-=2;\n            }\n        }\n        if(a==2)ans += "aa";\n        else if(a==1)ans += "a";\n        if(b==2)ans += "bb";\n        else if(b==1)ans += "b";\n        return ans;\n    }\n};\n```
['String', 'Greedy', 'C++']