If we have 2 queues, we can simply use SelectOutPut, if (queue1.size() < queue2.size())
go to Queue1, else go to Queue2.
But what if we have 12 queues? Using only if else will be a nightmare. So what will be our approach?
Note: Going through all the queues through a for loop could be the answer. If it's possible, then how?