EASY SOLUTION IN JAVA
class Solution {\n    public String strWithout3a3b(int a, int b) {\n          String str="";\n          \n          while(a!=b)\n          {\n             if(a>
class Solution {\n    public String strWithout3a3b(int a, int b) {\n          String str="";\n          \n          while(a!=b)\n          {\n             if(a>b)\n             {\n                 str=str+"aa";\n                 str=str+"b";\n                 a=a-2;\n                 b--;\n                 if(b==0||a==0)\n                 {\n                     break;\n                 }\n             }\n             else if(b>a)\n             {\n                 str=str+"bb";\n                 str=str+"a";\n                 b=b-2;\n                 a--;\n                 if(b==0||a==0)\n                 {\n                     break;\n                 }\n             }\n            else\n            {\n                break;\n            }\n          }\n        if(a==0&&b!=0)\n        {\n            while(b!=0)\n            {\n                str=str+"b";\n                b--;\n            }\n        }\n         if(a!=0&&b==0)\n        {\n            while(a!=0)\n            {\n                str=str+"a";\n                a--;\n            }\n        }\n         while(a==b&&(a!=0))\n         {\n             \n             str=str+"a";\n             str=str+"b";\n             a--;\n             b--;\n         }\n          return str;\n    }\n}
['Java']