Driver program to test above functions
public static void Main ( ) { int [ ] arr = { - 10 , - 3 , 5 , 6 , - 20 } ; int n = arr . Length ; int max = maxProduct ( arr , n ) ; if ( max == - 1 ) { Console . WriteLine ( " No ▁ Triplet ▁ Exists " ) ; } else { Console . WriteLine ( " Maximum ▁ product ▁ is ▁ " + max ) ; } } }