java Solution || 100% faster
\nclass Solution {\n    public String strWithout3a3b(int a, int b) {\n        StringBuilder s= new StringBuilder();\n        if(a==0 && b==0)\n        {\n      
```\nclass Solution {\n    public String strWithout3a3b(int a, int b) {\n        StringBuilder s= new StringBuilder();\n        if(a==0 && b==0)\n        {\n            return "";\n        }\n\n    else{\n            \n            if(a>b)\n            {\n                while(a>0)\n                {\n                    s.append("a");\n                        a--;\n                    \n                    if(a>b)\n                    {\n                        s.append("a");\n                        a--;\n                      \n                    }\n                    \n                    if(b>0)\n                    {\n                        s.append("b");\n                        b--;\n                    }\n                }\n            }\n            else if(b>a)\n            {\n                while(b>0)\n                {\n                     s.append("b");\n                        b--;\n                        \n                    if(b>a)\n                    {\n                        s.append("b");\n                        b--;\n                        \n                    }\n                    \n                    if(a>0)\n                    {\n                        s.append("a");\n                        a--;\n                    }\n                }\n            }\n            else{\n                while(a!=0 && b!=0)\n                {\n                    s.append("ab");\n                    a--;\n                    b--;\n                }\n            }\n        }\n         \n        return s.toString();\n        \n    }\n}\n```
['Java']