Pacific Atlantic Water Flow

Given an m x n height matrix where each cell's value represents elevation, find cells where water can flow to both the Pacific and Atlantic oceans. Water can flow from a cell to its neighbors (up, down, left, right) if the neighbor's elevation is less than or equal to the current cell.

Pacific ocean touches the top and left edges; Atlantic ocean touches the bottom and right edges.

Examples
Input: [[1,2,2,3,5],[3,2,3,4,4],[2,4,5,3,1],[6,7,1,4,5],[5,1,1,2,4]]
Output: [[0,4],[1,3],[1,4],[2,2],[3,0],[3,1],[4,0]]
Hints

Pacific Atlantic Water Flow

Given an m x n height matrix where each cell's value represents elevation, find cells where water can flow to both the Pacific and Atlantic oceans. Water can flow from a cell to its neighbors (up, down, left, right) if the neighbor's elevation is less than or equal to the current cell.