C++|| Greedy || Beats 100%
\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        int m;\n        m=max(a,b);\n        string s="";\n        if(m==a){\n          
```\nclass Solution {\npublic:\n    string strWithout3a3b(int a, int b) {\n        int m;\n        m=max(a,b);\n        string s="";\n        if(m==a){\n            while(a && b && a>b){\n                if(a>1){\n                    s+="aa";\n                    a--;\n                }\n                else{\n                    s+="a";\n                }\n                a--;\n                s+="b";\n                \n                b--;\n            }\n            \n            while(a && b){\n                s+="ab";\n                a--;b--;\n            }\n            while(a){\n                s+="a";\n                a--;\n            }\n            while(b){\n                s+="b";\n                b--;\n            }\n            \n        }\n        else{\n            while(a && b &&  a<b){\n                \n                if(b>1){\n                    s+="bb";\n                    b--;\n                }\n                else{\n                    s+="b";\n                }\n                b--;\n                s+="a";\n                \n                a--;\n            }\n            while(a && b){\n                s+="ab";\n                a--;b--;\n            }\n            while(b ){\n                s+="b";\n                b--;\n            }\n            while(a){\n                s+="a";\n                a--;\n            }\n        }\n        return s;\n        \n        \n    }\n};\n```
['String', 'Greedy']