Technical interview problem for determining water collected between indices
Technical interview practice problem