Input: grid = [[0,1,2,3,4],[24,23,22,21,5],[12,13,14,15,16],[11,17,18,19,20],[10,9,8,7,6]]
Explanation: To connect (0,0) to (4,4), you need a path where all cells have elevation at most 16. The provided route typically involves navigating through cells whose maximum elevation along the path is 16. For example, a path might be (0,0) -> (0,1) -> ... -> (0,4) -> (1,4) -> ... -> (4,4), if the elevations along this path are all <= 16. The specific path found by the algorithm will be the one minimizing this maximum bottleneck. In this case, 16 is the earliest time all necessary cells are submerged.