Python
\nclass Solution:\n    def destCity(self, p: List[List[str]]) -> str:\n        m=[]\n        n=[]\n        for i in p:\n            m.append(i[0])\n            
```\nclass Solution:\n    def destCity(self, p: List[List[str]]) -> str:\n        m=[]\n        n=[]\n        for i in p:\n            m.append(i[0])\n            n.append(i[1])\n        for i in range(0,len(m)):\n            if m[i] in n:\n                n.remove(m[i])\n        return str(n[0])\n```
[]