Bomb

CF

Bomb Blast Survivors

An N*N grid is passed as input to the program. There are bombs planted in the grid. Each bomb is detonated and destroys all the blocks in its…