Rotting Oranges

Try to solve the Rotting Oranges problem.

Statement

Consider an m×nm \times n ...