Problem with queue

In reply to peter:

At a time you can pop only 1 element . So if you want 2 elements you should call pop twice