Shortest Path Problem Leetcode Python Easy Drawing Of A Rose