Python using queue push pop
\nclass Solution:\n    def countStudents(self, students: List[int], sandwiches: List[int]) -> int:\n        count = len(students)\n        while(sandwiches and 
```\nclass Solution:\n    def countStudents(self, students: List[int], sandwiches: List[int]) -> int:\n        count = len(students)\n        while(sandwiches and students and sandwiches[0] in students):\n            if(sandwiches[0]!=students[0]):\n                students.append(students[0])\n                students.pop(0)\n            else:\n                students.pop(0)\n                sandwiches.pop(0)\n                count-=1\n        return count\n```
['Stack', 'Python3']