Day 59 of my #GFG160DayChallenge

Problem: Trapping Rain Water
Approach: The algorithm calculates trapped water by comparing left and right maximum heights.

Time Complexity: O(n)  
#GFG160 #geekstreak2024
@geeksforgeeks 
#gfg160