leetcode
1436. Destination City
Solution code
Time complexity: O(n)
Space complexity: O(n)