Practice Problem

Reconstruct Itinerary

Difficulty: Hard

Given a list of airline tickets, reconstruct the itinerary in lexical order starting from 'JFK', using all tickets exactly once.