Driver code
public static void main ( String arg [ ] ) { int coin [ ] = { 8 , 5 , 3 , 10 , 2 , 1 , 15 , 25 } ; int n = coin . length ; int k = 3 ; System . out . print ( minCost ( coin , n , k ) ) ; } }