📌 Python3 solution using sort
\nclass Solution:\n    def fillCups(self, a: List[int]) -> int:\n        result = 0\n        \n\n        while sum(a)!=0:\n            result+=1\n            a 
```\nclass Solution:\n    def fillCups(self, a: List[int]) -> int:\n        result = 0\n        \n\n        while sum(a)!=0:\n            result+=1\n            a = sorted(a, reverse=True)\n            if a[0] > 0:\n                a[0] -= 1\n                if a[1] > 0:\n                    a[1] -=1\n                elif a[2] > 0:\n                    a[2] -= 1\n        \n        return result\n```
['Sorting', 'Python3']