4-liner ^^
\nstring maximumBinaryString(string b)\n{    \n\tstring out(size(b), \'1\');\n\n\tif(auto i{b.find(\'0\')}; i!=string::npos)\n\t\tout[count(begin(b)+i, end(b), 
```\nstring maximumBinaryString(string b)\n{    \n\tstring out(size(b), \'1\');\n\n\tif(auto i{b.find(\'0\')}; i!=string::npos)\n\t\tout[count(begin(b)+i, end(b), \'0\')+i-1] = \'0\';\n\n\treturn move(out);\n}\n```\n<br>\n\n![image](https://assets.leetcode.com/users/images/6066b7c0-1617-402c-93ca-180622b31500_1611829748.4193053.png)\n\n\n\n\n\n
['C', 'C++']