JavaScript easiest to understand solution
\nvar destCity = function(paths) {\n    const map = paths.reduce((map, [s, e]) => map.set(s, e), new Map());\n    let station = paths[0][0]; // since there is o
```\nvar destCity = function(paths) {\n    const map = paths.reduce((map, [s, e]) => map.set(s, e), new Map());\n    let station = paths[0][0]; // since there is only one possible route, it doesn\'t matter where to begin\n    while(map.has(station)) {\n        station = map.get(station);\n    }\n    return station;\n};\n```
['JavaScript']