Navigating the Pacific Atlantic Water Flow Problem

Reverse engineering and combining two results together.