Concept Flow - Trapping Rain Water Problem
Start with height array
Find max height to left for each bar
Find max height to right for each bar
Calculate trapped water at each bar
Sum all trapped water
Return total trapped water
The flow shows how we find max heights on left and right sides for each bar, then calculate trapped water by comparing bar height with these max heights.
