✅ Simple Java Solution
CODE\nJava []\npublic long minimumSteps(String s) {\n\tlong res = 0l;\n\tint i = 0, n = s.length();\n\tfor(int j=0; j<n; j++) {\n\t\tchar ch = s.charAt(j);\n\t\
## **CODE**\n```Java []\npublic long minimumSteps(String s) {\n\tlong res = 0l;\n\tint i = 0, n = s.length();\n\tfor(int j=0; j<n; j++) {\n\t\tchar ch = s.charAt(j);\n\t\tif(ch == \'0\') {\n\t\t\tres += (j-i);\n\t\t\ti++;\n\t\t}\n\t}\n\treturn res;\n}\n```
['Java']