Reconstruct Itinerary - Leetcode 332 - Python