parameters: (self, tickets)
return_statement: return path[::-1]
docstring: :type tickets: List[List[str]]
          :rtype: List[str]
docstring_summary: :type tickets: List[List[str]]
          :rtype: List[str]
docstring_tokens: : type tickets : List [ List [ str ]] : rtype : List [ str ]
function: def findItinerary(self, tickets):
          """
          :type tickets: List[List[str]]
          :rtype: List[str]
          """
          Map = collections.defaultdict(list)
          for a,b in sorted(tickets)[::-1]:
              Map[a].append(b)            
          path = []
          def DFS(start):
              while Map[start]:
                  DFS(Map[start].pop())              
              path.append(start)    
          DFS('JFK')
          return path[::-1]
function_tokens: def findItinerary ( self , tickets ) : Map = collections . defaultdict ( list ) for a , b in sorted ( tickets ) [ : : - 1 ] : Map [ a ] . append ( b ) path = [ ] def DFS ( start ) : while Map [ start ] : DFS ( Map [ start ] . pop ( ) ) path . append ( start ) DFS ( 'JFK' ) return path [ : : - 1 ]