Javascript Solution
\n/**\n * @param {string[][]} paths\n * @return {string}\n */\nvar destCity = function(paths) {\n    let nextDest = paths[0][1];\n\n    \n    for (let i = 0; i 
```\n/**\n * @param {string[][]} paths\n * @return {string}\n */\nvar destCity = function(paths) {\n    let nextDest = paths[0][1];\n\n    \n    for (let i = 0; i < paths.length; i++) {\n       if (paths[i][0] == nextDest) {\n           nextDest = paths[i][1];\n           i = 0;\n       }\n    }\n    \n    return nextDest;\n};\n```\n\nRuntime: 65 ms, faster than 92.73% of JavaScript online submissions for Destination City.\nMemory Usage: 42.5 MB, less than 98.91% of JavaScript online submissions for Destination City.
['JavaScript']