Restating Info We’re Already Given: Treating the matrix like a map, the north and west borders are the Pacific Ocean and the south and east borders are the Atlantic Ocean. Following the map analogy, each value represents the altitude at that (row, col) pair and thus water will flow from higher to lower (or same…