Implement Shortest Path Leetcode Download