Queue
Your task is to create a program to simulate grocery store queues. In a single grocery store there can be multiple checkout lines with their own queue, in this task you have to create two queues to simulate two checkout lines.
Each person in the checkout line is represented by a number starting from 1 since it is their codename. This means your queue should store integers.
The program accepts the following commands.
enqueue
enqueue
enqueue
checkout first
checkout second
enqueue
enqueue
checkout second
checkout first
checkout first
Enqueue 1 at the first queue.
Enqueue 2 at the second queue.
Enqueue 3 at the first queue.
1 checked out at the first queue.
2 checked out at the second queue.
Enqueue 4 at the second queue.
Enqueue 5 at the first queue.
4 checked out at the second queue.
3 checked out at the first queue.
5 checked out at the first queue.