Super Easy 8 lines Java Code || Only if else Statements
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\n     public boolean lemonadeChange(int[] bills) {\n        int five = 0, ten = 0;\n        for (int i : bills) {\n            if (i == 5) five++;\n            else if(i == 10) {five--; ten++;}\n            else if(ten > 0 && five>=1){ ten--; five--;}\n            else{five -= 3;}\n            if (five < 0) return false;\n        }\n        return true;\n    }\n}        \n```
['Array', 'Math', 'Greedy', 'Java']