c++ greedy
\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        int ca=0,cb=0;\n        string ans="";\n        while(a>0||b>0){\n            if
```\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        int ca=0,cb=0;\n        string ans="";\n        while(a>0||b>0){\n            if(a>=b&&ca!=2||cb==2){\n                ans+=\'a\';\n                ca++;\n                a--;\n                cb=0;\n            }\n            else if(b>a&&cb<2||ca==2){\n                ans+=\'b\';\n                cb++;\n                b--;\n                ca=0;\n            }\n        }\n        return ans;\n        \n    }\n};\n```
['Greedy', 'C']