Driver code
public static void main ( String args [ ] ) { int arr [ ] = { 19 , 3 , 6 } ; int n = arr . length ; int circumference = 20 ; System . out . println ( minCost ( arr , n , circumference ) ) ; } }