Super Simple Solution!!!⚡🔥🔥
\n\n# Code\n\nclass Solution {\npublic:\n    string maximumBinaryString(string binary) {\n        int n=binary.size();\n        long long zero=0;\n        for(i
\n\n# Code\n```\nclass Solution {\npublic:\n    string maximumBinaryString(string binary) {\n        int n=binary.size();\n        long long zero=0;\n        for(int i=0;i<binary.size();i++){\n            if(binary[i]==\'0\')zero++;\n        }\n        int idx=-1;\n        for(int i=0;i<binary.size();i++){\n            if(binary[i]==\'0\'){\n                idx=i;\n                break;\n            }\n        }    \n        string ans(n,\'1\');\n        if(zero>0)ans[idx+zero-1]=\'0\';\n        return ans;\n    }\n};\n```
['String', 'Greedy', 'C++']