orangesRotting = function(grid) {
    const { queue, orangeCount } = searchGrid(grid);  /* Time O(ROWS * COLS) */
    const { rottenCount, minutes } = bfs(grid, queue);

    const isEqual = orangeCount === rottenCount;
    return isEqual
        ? minutes
        : -1;
}
https://leetcode.com/problems/rotting-oranges/
Time O(ROWS * COLS) | Space O(ROWS * COLS)
@param {number[][]} grid
@return {number}