Given an `m x n` integer matrix `heightMap` where each cell holds the height of a unit block in a 2D elevation map, return *the total volume of water it can trap after raining*.
Water on a cell can rise only as high as the lowest wall along some path that leads off the edge of the map. Cells on the border can never hold water.
Given an m x n integer matrix heightMap where each cell holds the height of a unit block in a 2D elevation map, return the total volume of water it can trap after raining.
Water on a cell can rise only as high as the lowest wall along some path that leads off the edge of the map. Cells on the border can never hold water.