Simple Swift Solution Using Dictionary
\n    func destCity(_ paths: [[String]]) -> String {\n    var dict : [String : String] = [:]\n    for path in paths{\n        dict[path[0]] = path[1]\n    }\n  
```\n    func destCity(_ paths: [[String]]) -> String {\n    var dict : [String : String] = [:]\n    for path in paths{\n        dict[path[0]] = path[1]\n    }\n    for val in dict.values{\n        if dict[val] == nil{\n            return val\n        }\n    }\n    return ""\n        \n    }\n```
['Swift']