Students stand in a queue and sandwiches are in a stack, each being 0 or 1. The student at the front takes the top sandwich if it matches their preference, otherwise goes to the back of the queue. This repeats until no remaining student wants the top sandwich. Return the number of students unable to eat. The input is JSON {students, sandwiches}.
Input: JSON {students, sandwiches}.
Output: Integer — the count of students who cannot eat.
Input: {"students":[1,1,0,0],"sandwiches":[0,1,0,1]}
Output: 0
Explanation: Every student eventually eats.Input: {"students":[1,1,1,0,0,1],"sandwiches":[1,0,0,0,1,1]}
Output: 3
Explanation: Three students remain.Input: {"students":[0],"sandwiches":[0]}
Output: 0
Explanation: The single student eats.1<=n<=100