public RotateIterator(List<Iterator<Integer>> iterators){
        this.iterators = iterators;
        queue = new LinkedList<Iterator<Integer>>();
        for(Iterator<Integer> it : iterators){
            if(it.hasNext()) queue.offer(it);
        }
    }