Java Solution 100% Runtime 73% Space
\nclass Solution {\n    public String strWithout3a3b(int A, int B) {\n        StringBuilder w = new StringBuilder();\n        while(A >0 && B >0){\n        if(A
```\nclass Solution {\n    public String strWithout3a3b(int A, int B) {\n        StringBuilder w = new StringBuilder();\n        while(A >0 && B >0){\n        if(A==B){\n            w.append("a");\n            w.append("b");\n            A --;\n            B --;\n            continue;\n        }\n        if(Math.abs(A-B) > 0){\n           if(A> B){\n               A -=2;\n               B--;\n               w.append(\'a\');\n               w.append(\'a\');\n               w.append(\'b\');\n\n               \n           }else{\n               B -= 2;\n               A--;\n               w.append(\'b\');\n               w.append(\'b\');\n               w.append(\'a\');\n\n           } \n        }else{\n            \n            A--;\n            B--;\n            w.append(\'a\');\n            w.append(\'b\');\n        }\n    }\n    \n    while (A > 0){\n        A--;\n        w.append(\'a\');\n    }\n    while(B > 0){\n        B--;\n        w.append(\'b\');\n    }\n    return w.toString();\n    }\n}\n```
[]