Implement Shortest Path Leetcode Python Challenges For Intermediate