The problem is to find the amount of water trapped or retained for a given surface.This has been studied extensively for two mathematical surfaces: (1) Magic Square and (2) Random Surfaces (discussed in this entry).