41. Trapping rain water

HardProgramAcademy Pass

How much rain water a row of bars holds after it rains.

Opening the problem…