The code below is for leetcode problem Reconstruct Itinerary :
class Solution { public: vector res; unordered_map