pacificAtlantic = function(heights) {
    const [ pacificReachable, atlanticReachable ] = search(heights);   /* Time O(ROWS * COLS) | Space O(ROWS * COLS) */

    return searchGrid(heights, pacificReachable, atlanticReachable);/* Time O(ROWS * COLS) | Space O(ROWS * COLS) */
}
https://leetcode.com/problems/pacific-atlantic-water-flow/
Time O(ROWS * COLS) | Space O(ROWS * COLS)
@param {number[][]} heights
@return {number[][]}