Well, you can only go down, in, or right (depending on how you orient the figure) if you want to go the quickest way, and conversely, as long as you only go one of these three directions at each step, this is a shortest path. (Do you see why?) It might help you visualize things if you flatten the shape out and turn this into a 2D problem.