C # program to find maximum amount of water that can be trapped within given set of bars .
using System ; class Test { static int [ ] arr = new int [ ] { 0 , 1 , 0 , 2 , 1 , 0 , 1 , 3 , 2 , 1 , 2 , 1 } ;