[Python3] Brute Force Solution
\nclass Solution:\n    def minOperations(self, boxes: str) -> List[int]:\n        arr = []\n        for i in range(len(boxes)):\n            sumi = 0\n         
```\nclass Solution:\n    def minOperations(self, boxes: str) -> List[int]:\n        arr = []\n        for i in range(len(boxes)):\n            sumi = 0\n            for j in range(len(boxes)):\n                if(boxes[j] == \'1\'):\n                    sumi += abs(j - i)\n            arr.append(sumi)\n        \n        return arr\n```
['Python3']