JAVA Solution Explained in HINDI
https://youtu.be/66iJV6vIswE\n\nFor explanation, please watch the above video and do like, share and subscribe the channel\u2764\uFE0F\n\nSubscribe link:- https
https://youtu.be/66iJV6vIswE\n\n**For explanation, please watch the above video and do like, share and subscribe the channel\u2764\uFE0F**\n\n**Subscribe link**:- https://youtube.com/@quantumCode7?si=NzjWYmiCbqfFBUJE\n\n*Subscribe Goal:- 100\nCurrent Subscriber:- 28*\n# Code\n```\nclass Solution {\n    public String destCity(List<List<String>> paths) {\n        \n        Set<String> outgoing = new HashSet<>();\n        for(int i = 0; i < paths.size(); i++) {\n            outgoing.add(paths.get(i).get(0));\n        }\n\n        for(int i = 0; i < paths.size(); i++) {\n            String city = paths.get(i).get(1);\n            if(!outgoing.contains(city)) {\n                return city;\n            }\n        }\n        return "";\n    }\n}\n```
['Java']