O(N) || Clean Code
```\nvar countStudents = function(students, sandwiches) {\n    // Compute the number of students who need Square Sandwich\n    var square = students.reduce((acc
```\nvar countStudents = function(students, sandwiches) {\n    // Compute the number of students who need Square Sandwich\n    var square = students.reduce((acc, val) =>{\n        return acc + val\n    });\n    // The number of students who need Circular Sandwich\n    var circular = students.length - square;\n    \n    for(var x of sandwiches){\n        if(x && square) square--;\n        else if(!x && circular) circular--;\n        else return square + circular;\n    }\n   return square + circular; \n};
['JavaScript']