private void find(Map<String,PriorityQueue<String>>  tickets, String cur,List<String> result){
        while (tickets.containsKey(cur) && !tickets.get(cur).isEmpty()) {
            find(tickets, tickets.get(cur).poll(), result);
        }
        result.add(0,cur);
        return;
    }