Driver Code
public static void Main ( string [ ] args ) { int [ ] hist = new int [ ] { 6 , 2 , 5 , 4 , 5 , 1 , 6 } ; Console . WriteLine ( " Maximum ▁ area ▁ is ▁ " + getMaxArea ( hist , hist . Length ) ) ; } }