Step 2: On each iteration of an infinite loop, get a name from the user.
If the name is not empty, add it to a list that represents the queue.
If the name is empty, print the next name in the queue, and remove it from the queue,
as long as there is at least one name in the queue.