Rotting Oranges

Try to solve the Rotting Oranges problem.

Statement

Consider an m×nm \times n grid containing cells with three potential values:

  • 00, ...