Problem Statment
Apoorvaa has created an elevated roof. She wants to know how much water can she save during rain.
Given n non negative integers representing the elevation map where width of every bar is 1, Find the maximum water that she can save.
First line contains an integer n. Second line contains n space separated integers representing the elevation map.
Example 1:
10
0 2 1 3 0 1 2 1 2 1
>> 5