Terrain Rainwater Retention Analysis - Coding problem | OneNoughtOne