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 ; System . out . println ( minSum ( n , num , price ) ) ; } }