Create trapping-rain-water.cpp

Interesting question. I used naive solution but failed to pass time limit.
The better solution is to use DP.