Example 14.
Beaten Paths
: interplay between upper and lower arrays