Hi,
I have a problem undestanding the example (especially with the last comment in the problem description (second to last if you consider the "Submit your solution within 60 seconds." a comment as well)) .
The example says the largest cluster is the six '5's in the top corner and gives the solution as (203,040) to (213,141). How is this possible?
If you mean the solution is (2,0)(3,0)(4,0)(2,1)(3,1)(4,1) then you should make the solution look:
002000003000004000002001003001004001 and explain it represents the above.
Another thing you can add (to make things clearer) is that the grid numbering starts from 0.