Java Simple Solution
class Solution {\n    public int fillCups(int[] amount) {\n        int cold = amount[0];\n        int warm = amount[1];\n        int hot = amount[2];\n        i
```class Solution {\n    public int fillCups(int[] amount) {\n        int cold = amount[0];\n        int warm = amount[1];\n        int hot = amount[2];\n        int ans = 0 ;\n        while(cold > 0 || warm > 0 || hot > 0){\n            if(cold >= warm && warm >= hot){\n                cold--;\n                warm--;\n                ans++;\n            }else if(cold >= warm && hot >= warm){\n                cold--;\n                hot--;\n                ans++;\n            }else if(warm >= cold && hot >= warm){\n                hot--;\n                warm--;\n                ans++;\n            }else if(warm>= cold && warm >= hot){\n                warm--;\n                if(cold > hot){\n                    cold--;\n                }else{\n                    hot--;\n                }\n                ans++;\n            }\n            else if(warm == hot && hot == cold ){\n                warm--;\n                cold--;\n                ans++;\n            }\n            \n        }\n        \n        return ans;\n\t\t\n    }\n}\n```
['Java']