easy to understand solution ...
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def fillCups(self, amount: List[int]) -> int:
        
        seconds = 0
        while sum([1 for am in amount if am > 0]):
            amount.sort() # while two elements of the three still positive , substract from the biggest two elements
            amount[2] -= 1
            amount[1] -= 1
            seconds += 1
        amount.sort()
        seconds += amount[2] # add that last one element if exist .. 
        return seconds

```
['Python3']