EASY TO UNDERSTAND || JAVA CODE
\nclass Solution {\n    public int fillCups(int[] amount) {\n        int sec=0;\n        Arrays.sort(amount);\n        while (amount[1]>0 && amount[2]>0){\n    
```\nclass Solution {\n    public int fillCups(int[] amount) {\n        int sec=0;\n        Arrays.sort(amount);\n        while (amount[1]>0 && amount[2]>0){\n            amount[1]--;\n            amount[2]--;\n        Arrays.sort(amount);    \n            sec++;\n        }\n        while(amount[2]>0 ){\n            amount[2]--;\n            \n            sec++;\n        }\n        return sec;\n    }\n}\n```
[]