Implement Shortest Path Leetcode Python Challenges Beginner