Javascript simple solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n$$O(n)$$\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n$$O(n)$$\n\n# Code\n```\n/**\n * @param {number} a\n * @param {number} b\n * @return {string}\n */\nvar strWithout3a3b = function(a, b) {\n   let s=\'\'\n   while(a>0 && b>0) {\n    if (a===b) {\n        s+=\'ab\'\n        a--\n        b--\n    } else if (a>b) {\n        s+=\'aab\'\n        a-=2\n        b--\n    } else if (a<b) {\n        s+=\'bba\'\n        a--\n        b-=2\n    }\n   }\n   if (a>0) s+=\'a\'.repeat(a)\n   else if (b>0) s+=\'b\'.repeat(b)\n   return s\n};\n```
['JavaScript']