swimInWater = (grid) => {
    const seen = new Set();
    const minHeap = getHeap(grid);

    return getTime(grid, seen, minHeap);
}
https://leetcode.com/problems/swim-in-rising-water/
@param {number[][]} grid
@return {number}