Shortest Path Problem Leetcode Python Easy Graphic Photos