Driver code
static public void Main ( ) { int [ ] arr = { 6 , 1 , 7 , 2 , 8 , 4 } ; int n = arr . Length ; int [ ] b = new int [ 2 ] ; int tranFee = 2 ; max_profit ( arr , b , n , tranFee ) ; Console . WriteLine ( b [ 0 ] + " , ▁ " + b [ 1 ] ) ; } }