Simple If-Else conditions
\n# Code\n\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int f=0,ten=0;\n\n        for(int i=0; i<bills.length; i++){\n          
\n# Code\n```\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int f=0,ten=0;\n\n        for(int i=0; i<bills.length; i++){\n            if(bills[i]==5) f++;\n            else if(bills[i]==10) {\n                if(f>0) {f--; ten++;}\n                else return false;\n            }\n            else{\n                if(f>0 && ten>0) {f--; ten--;}\n                else if(f>2) f-=3;\n                else return false;\n            }\n        }\n        return true;\n    }\n}\n```
['Java']