easy code in c++
\n\n# Code\n\nclass Solution {\npublic:\n    bool lemonadeChange(vector<int>& bills) {\n        int n = bills.size();\n        long long int change = 0;\n      
\n\n# Code\n```\nclass Solution {\npublic:\n    bool lemonadeChange(vector<int>& bills) {\n        int n = bills.size();\n        long long int change = 0;\n        int fives = 0, tens = 0;\n        for (int i = 0; i < n; i++) {\n            if (bills[i] == 5) {\n                fives++;\n            } \n            else if (bills[i] == 10) {\n                if (fives == 0) {\n                    return false;\n                }\n                fives--;\n                tens++;\n            } \n            else { \n                if (tens > 0 && fives > 0) {\n                    tens--;\n                    fives--;\n                } \n                else if (fives >= 3) {\n                    fives -= 3;\n                } \n                else {\n                    return false;\n                }\n            }\n        }\n        return true;\n    }\n};\n\n```
['C++']