Instructure Interview Question

Write and algorithm that can compute pond size given a NxM grid