Given a 2D `grid` of `0`s (land) and `1`s (water), an island is a maximal group of land cells connected 4-directionally. A closed island is an island completely surrounded by water on its left, top, right and bottom, which means none of its cells lies on the edge of the grid. Return the number of closed islands.
Given a 2D grid of 0s (land) and 1s (water), an island is a maximal group of land cells connected 4-directionally. A closed island is an island completely surrounded by water on its left, top, right and bottom, which means none of its cells lies on the edge of the grid. Return the number of closed islands.