Shortest Path Problem Leetcode Python Easy Drawing Of Animals