Oracle Interview Question

Rain water collection problem in DSA