Driver Code
public static void Main ( String [ ] args ) { int [ ] price = { 2 , 30 , 15 , 10 , 8 , 25 , 80 } ; int n = price . Length ; Console . Write ( " Maximum ▁ Profit ▁ = ▁ " + maxProfit ( price , n ) ) ; } }