Implement Shortest Path Leetcode Sql Challenges