Easy JAVA Solution
\n# Code\njava []\nclass Solution {\n    public long minimumSteps(String s) {\n        long cnt= 0;\n        long ans = 0;\n        for(int i = s.length()-1; i>
\n# Code\n```java []\nclass Solution {\n    public long minimumSteps(String s) {\n        long cnt= 0;\n        long ans = 0;\n        for(int i = s.length()-1; i>=0; i--){\n            if(s.charAt(i) == \'1\'){\n                ans += cnt;\n            }\n            else{\n                cnt++;\n            }\n        }\n        return (long)ans;\n    }\n}\n```
['Java']