class Solution {
public:
string maximumOddBinaryNumber(string s) {
int one = 0,zero = 0;
for(string::iterator it = s.begin(); it!=s.end(); it++)
{
if(*it=='0') zero++;
else one++;
}
one--;
string ans;
while(one--)
{
ans.push_back('1');
}
while(zero--)
{
ans.push_back('0');
}
ans.push_back('1');
return ans;
}
};