PayPal interview question

Rainwater harvesting problem. Data Structures.