3197. Find the Minimum Area to Cover All Ones II You are given a 2D binary array grid.…