Driver Code
public static void Main ( String [ ] args ) { int [ ] num = { 2 , 4 , 6 , 7 , 8 } ; int [ ] price = { 10 , 20 , 100 , 20 , 40 } ; int n = price . Length ; Console . WriteLine ( minSum ( n , num , price ) ) ; } }