Recursive C++ | Beats 100%
\nclass Solution {\npublic:\n    string s="";\n    string strWithout3a3b(int a, int b) {\n        if(a==0)\n            return string(b,\'b\');\n        else if
```\nclass Solution {\npublic:\n    string s="";\n    string strWithout3a3b(int a, int b) {\n        if(a==0)\n            return string(b,\'b\');\n        else if(b==0)\n            return string(a,\'a\');\n        else if(a>b)\n            return "aab"+strWithout3a3b(a-2, b-1);\n        else if(b>a)\n            return "bba"+strWithout3a3b(a-1, b-2);\n        else if(a==b)\n            return "ab"+strWithout3a3b(a-1, b-1);\n        return "";\n    }\n};\n```
[]