[Java] Easy to understand solution using HashMap
\n    public String destCity(List<List<String>> paths) {\n        Map<String, String> cityMap = new HashMap<>();\n        // Maintain a Start to Destination Cit
```\n    public String destCity(List<List<String>> paths) {\n        Map<String, String> cityMap = new HashMap<>();\n        // Maintain a Start to Destination City Map which will helpful\n        // in traversing from one city to another through given path.\n        // one key value pair signifies a valid path\n\n        for (List<String> path : paths) {\n            cityMap.put(path.get(0), path.get(1));\n        }\n\n        String destinationCity = paths.get(0).get(1); // Start from any destination city\n        while (cityMap.get(destinationCity) != null) { // Stop when can\'t traverse further\n            destinationCity = cityMap.get(destinationCity);\n            // Current Destination City will be the Start City for next iteration\n        }\n        return destinationCity;\n    }\n```\nPlease do upvote if you liked the solution or comment incase any doubt :)
['Java']