simple and easy C++ solution 😍❤️‍🔥
\n# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n###### Let\'s Connect on LinkedIn: www.linkedin.com/in/shishirrsiam\n###### Let\'s Connect on Facebook
\n# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n###### Let\'s Connect on LinkedIn: www.linkedin.com/in/shishirrsiam\n###### Let\'s Connect on Facebook: www.fb.com/shishirrsiam\n\n# Complexity\n- Time complexity: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1), Constant \n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    bool lemonadeChange(vector<int>& bills) \n    {\n        vector<int>count(25);\n        for(auto bill:bills)\n        {\n            if(bill == 5) count[5]++;\n            else if(bill == 10) \n            {\n                if(count[5]) count[5]--;\n                else return false;\n                count[10]++;\n            }\n            else \n            {\n                if(count[5] and count[10]) count[5]--, count[10]--;\n                else if(count[5] > 2) count[5] -= 3;\n                else return false;\n            }\n        }\n        return true;\n    }\n};\n```
['Array', 'Greedy', 'Counting', 'C++']