Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 19 , 3 , 6 } ; int n = arr . Length ; int circumference = 20 ; Console . WriteLine ( minCost ( arr , n , circumference ) ) ; } }