Java Solution
Code\n\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int[] noteCount = new int[3];\n        Arrays.fill(noteCount, 0);\n\n       
# Code\n```\nclass Solution {\n    public boolean lemonadeChange(int[] bills) {\n        int[] noteCount = new int[3];\n        Arrays.fill(noteCount, 0);\n\n        for (int i = 0; i < bills.length; i++) {\n            if (bills[i] == 5) {\n                noteCount[0] += 1;\n            }\n            if (bills[i] == 10) {\n                if (noteCount[0] == 0)\n                    return false;\n                else {\n                    noteCount[1] += 1;\n                    noteCount[0] -= 1;\n                }\n            }\n            if (bills[i] == 20) {\n                if (noteCount[0] == 0)\n                    return false;\n                if (noteCount[0] < 3 && noteCount[1] == 0)\n                    return false;\n                else {\n                    if (noteCount[1] != 0 && noteCount[0] != 0) {\n                        noteCount[1] -= 1;\n                        noteCount[0] -= 1;\n                        noteCount[2] += 1;\n                    } else if (noteCount[0] >= 3) {\n                        noteCount[2] += 1;\n                        noteCount[0] -= 3;\n                    }\n                }\n            }\n        }\n\n        return true;\n    }\n}\n```
['Array', 'Greedy', 'Java']