Input: grid = [[2,1,1],[1,1,0],[0,1,1]]
Explanation: Initially, the orange at (0,0) is rotten. In minute 1, it rots its adjacent fresh oranges at (0,1) and (1,0). In minute 2, these newly rotten oranges spread the rot to (0,2) and (1,1). In minute 3, (1,1) rots (2,1). Finally, in minute 4, (2,1) rots (2,2). After 4 minutes, all fresh oranges are rotten.