Apoorva 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 the width of every bar is 1, Find the maximum water that she can save.
But what should be the maximum height in each test case? Like in this maximum height is 2