simple and easy understanding c++ code
\ncpp []\nclass Solution {\npublic:\n    long long minimumSteps(string s) {\n        int n=s.length();\n        int c=0;\n        long long b=0;\n        for(in
\n```cpp []\nclass Solution {\npublic:\n    long long minimumSteps(string s) {\n        int n=s.length();\n        int c=0;\n        long long b=0;\n        for(int i=0;i<n;i++){\n            if(s[i]==\'1\'){\n                c++;\n            }\n            else{\n                b+=c;\n            }\n        }\n        return b;\n        \n    }\n};\n```
['C++']