Super simple java solution - straightforward
\nclass Solution {\n    \n    public String strWithout3a3b(int a, int b) {\n        StringBuilder str = new StringBuilder();\n        int size = a + b;\n       
```\nclass Solution {\n    \n    public String strWithout3a3b(int a, int b) {\n        StringBuilder str = new StringBuilder();\n        int size = a + b;\n        int A =0, B = 0;\n        \n        for(int i =0;i<size;i++) {\n            if(a >=b && A != 2 || a > 0 && B==2) {\n                str.append(\'a\');\n                A++;\n                a--;\n                B = 0;   \n            }\n            else if(b >= a && B != 2 || b > 0 && A==2) {\n                str.append(\'b\');\n                B++;\n                b--;\n                A = 0;   \n            }\n        }\n        return new String(str);\n        \n    }\n}\n```
[]