C#
\npublic string DestCity(IList<IList<string>> paths) {\n\tvar dict = paths.ToDictionary(x => x[0], x => x[1]);\n\tvar dest = dict.First().Value;\n\twhile (dict.
```\npublic string DestCity(IList<IList<string>> paths) {\n\tvar dict = paths.ToDictionary(x => x[0], x => x[1]);\n\tvar dest = dict.First().Value;\n\twhile (dict.ContainsKey(dest)) dest = dict[dest];\n\treturn dest;\n}\n```
[]