This is a question I received in an interview. It is difficult to explain, please bear with me.
Imagine a train ticket counter.
- First there are three counters.
- There is a guard who keeps a check on people so that no one breaks the line.
- Each counter has 2 people in line. People waiting in line entered in alphabetical order.
- A new 4th counter opens. And there are two new people G and H who are going to join this line.
You are a security guard, now you can choose who can be processed on the new counter.

Counters are marked 1, 2, 3 and 4 (blue squares). People waiting in line are marked A, B, C, etc. First came A, then B, then C, etc.
I was asked to give an answer and the logic of the answer. The interviewer continued to ask more questions about my answers.
For example, when I said
- I will ask D and E to go to the 4th counter;
- G will stand for A and H will stand for B
The interviewer claimed that this means that E and G are given the same preference (priority).
After several minutes of such arguments, I said that this seems like a simple scheduling problem that can be easily solved if there is a common queue, and the guard sends the next person to the queue to an empty counter after FCFS.

However, the interviewer was not impressed.
Is there any other approach that I skipped? What is the correct answer to such questions?
PS: I did not go through this round :(
source share