Sponsored
Use these hints if you're stuck. Try solving on your own first.
Start in any city and use the path to move to the next city.
Eventually, you will reach a city with no path outgoing, this is the destination city.
Solve with full IDE support and test cases