Hello! The solution waiting for u !!
Code\n\nclass Solution {\n    public int countStudents(int[] students, int[] sandwiches) {\n        int CSW = 0, SSW = 0;\n\n        for (int student : students
# Code\n```\nclass Solution {\n    public int countStudents(int[] students, int[] sandwiches) {\n        int CSW = 0, SSW = 0;\n\n        for (int student : students){\n            if (student == 1){\n                SSW++;\n            } else {\n                CSW++;\n            }\n        }\n\n        for (int sandwiche : sandwiches){\n            if (sandwiche == 1 && SSW > 0){\n                SSW--;\n            } else if (sandwiche == 0 && CSW > 0){\n                CSW--;\n            } else {\n                return SSW + CSW;\n            }\n        }\n        return 0;\n    }\n}\n```
['Java']